mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 09:26:47 +00:00
Lazily evaluate jobs to give max concurrency meaningful "teeth"
This commit is contained in:
1 parent
6142dcc7e6
commit
315fc00eac
1 file changed
+1
-1
@@ -153,7 +153,7 @@ public abstract class JobScheduler {
|
||||
? item.get(ATTR_JOB_DATA).b().asByteArray()
|
||||
: null;
|
||||
|
||||
return Mono.fromFuture(processJob(jobData))
|
||||
return Mono.fromFuture(() -> processJob(jobData))
|
||||
.doOnNext(outcome -> Metrics.counter(PROCESS_JOB_COUNTER_NAME,
|
||||
SCHEDULER_NAME_TAG, getSchedulerName(),
|
||||
OUTCOME_TAG, outcome)
|
||||
|
||||
Reference in new issue
Block a user