createSweepJobRunner
function createSweepJobRunner(runtime, opts?): (job) => Promise<void>;Registers both recoverOrphanedRuns and sweepDeadlines as the handler for
kuralle.sweep jobs.
Exactly one sweeper per RunStore. The run mutex is in-process only; two schedulers against the same store race recoveries of the same orphan.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
{ |
|
|
( |
|
|
( |
Returns
Section titled “Returns”(job) => Promise<void>