Optional
client: ChainableCommander | RedisClientLooks 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.
Optional
jobId: stringMove parent job to waiting-children state.
true if job is successfully moved, false if there are pending dependencies.
JobNotExist This exception is thrown if jobId is missing.
JobLockNotExist This exception is thrown if job lock is missing.
JobNotInState This exception is thrown if job is not in active state.
Optional
opts: MoveToWaitingChildrenOptsPaginate a set or hash keys.
Optional
fetchAttempts to reprocess a job
The expected job state. If the job is not found on the provided state, then it's not reprocessed. Supported states: 'failed', 'completed'
Returns a promise that evaluates to a return code: 1 means the operation was a success 0 means the job does not exist -1 means the job is currently locked and can't be retried. -2 means the job was not found in the expected set
Generated using TypeDoc
Remove jobs in a specific state.