Skip to content

Commit 77df250

Browse files
committed
Merge branch 'master' of https://github.com/gresrun/jesque
2 parents 0cf4a4e + 1c6c1b2 commit 77df250

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: src/main/java/net/greghaines/jesque/meta/dao/impl/WorkerInfoDAORedisImpl.java

+2
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ private boolean isWorkerInState(final String workerName, final WorkerInfo.State
238238
if (statusPayload != null) {
239239
final WorkerStatus status = ObjectMapperFactory.get().readValue(statusPayload, WorkerStatus.class);
240240
proceed = !status.isPaused();
241+
} else {
242+
proceed = false;
241243
}
242244
break;
243245
default:

Diff for: src/main/java/net/greghaines/jesque/worker/WorkerImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ public WorkerImpl(final Config config, final Collection<String> queues,
173173
this.namespace = config.getNamespace();
174174
this.jedis = new Jedis(config.getHost(), config.getPort(), config.getTimeout());
175175
authenticateAndSelectDB();
176-
this.name = createName();
177176
setQueues(queues);
178177
setJobTypes(jobTypes);
178+
this.name = createName();
179179
}
180180

181181
/**

0 commit comments

Comments
 (0)