This class allows easier implementation of JobQueueStrategy in a polling style.
Instead of providing JobQueueStrategy start() you should provide a next method.
This class should be extended by any strategy which does not support a push-based system to notify on new jobs. It is used by the SqlJobQueueStrategy and InMemoryJobQueueStrategy.
number | ((queueName: string) => number)number | ((queueName: string) => number)(queueName: string, job: Job) => numberBackoffStrategynumber(queueName: string, process: (job: Job<Data>) => Promise<any>) => (queueName: string, process: (job: Job<Data>) => Promise<any>) => (queueName: string) => Promise<Job | undefined>Should return the next job in the given queue. The implementation is responsible for returning the correct job according to the time of creation.
(job: Job) => Promise<void>Update the job details in the store.
Returns a job by its id.