OptionalproducerId: stringOptionalkeepLogs: numberthe ID of the job to change the delay for.
milliseconds from now when the job should be processed.
delay in milliseconds.
Remove jobs in a specific state.
Id jobs from the deleted records.
Optionalclient: ChainableCommander | RedisClientOptionalmaxJobs: numberOptionalmaxJobs: numberMoves a job back from Active to Wait. This script is used when a job has been manually rate limited and needs to be moved back to wait from active status.
Job id
Looks for unlocked jobs in the active queue.
The job was being worked on, but the worker process died and it failed to renew the lock. We call these jobs 'stalled'. This is the most common case. We resolve these by moving them back to wait to be re-processed. To prevent jobs from cycling endlessly between active and wait, (e.g. if the job handler keeps crashing), we limit the number stalled job recoveries to settings.maxStalledCount.
Optionalname: stringOptionalfieldsToUpdate: Record<string, any>Move parent job to waiting-children state.
true if job is successfully moved, false if there are pending dependencies.
Optionalopts: MoveToWaitingChildrenOptsPaginate a set or hash keys.
options to define the pagination behaviour
Attempts to reprocess a job
The job to reprocess
The expected job state. If the job is not found on the provided state, then it's not reprocessed. Supported states: 'failed', 'completed'
A promise that resolves when the job has been successfully moved to the wait queue.
OptionalproducerId: string
Change delay of a delayed job.
Reschedules a delayed job by setting a new delay from the current time. For example, calling changeDelay(5000) will reschedule the job to execute 5000 milliseconds (5 seconds) from now, regardless of the original delay.