Queuing options are configured either at Engine creation or when queuing a job. Options declared when queuing a job take precedence over those at Engine instantiation. All queueing systems support the following options unless otherwise specified:
queue
: Name of a queue to place a job on. All queues are dynamic, and need not be declared beforehand.attempts
: Max number of attempts a job can be performed until it is marked as dead.attempts_delay
: Number of seconds any additional attempts are delayed by.priority
: Jobs with smaller priority values will be scheduled before jobs with larger priorities. Not available with theMemoryEngine
orSynchronousEngine
. Job priorities are constants, and there are 5 priorities:- Job::LOW
- Job::NORMAL
- Job::MEDIUM
- Job::HIGH
- Job::CRITICAL
delay
: Seconds to wait before putting the job in the ready queue. The job will be in the "delayed" state during this time. Not available with theRedisEngine
orPredisEngine
.time_to_run
: Max amount of time (in seconds) a job can take to run before it is released to the general queue. Not available with theMysqlEngine
expires_in
: Max amount of time a job may be in the queue until it is discarded. Not available with theRedisEngine
orPredisEngine
.