DatabaseQueue
class DatabaseQueue extends Queue implements Queue (View source)
Methods
Push a new job onto the queue.
Push a new job onto the queue after a delay.
Push an array of jobs onto the queue.
Create a new database queue instance.
Push a new job onto the queue.
Push a raw payload onto the queue.
Delete a reserved job from the queue.
Get the underlying database instance.
Get the expiration time in seconds.
Set the expiration time in seconds.
Details
mixed
laterOn(
string $queue,
DateTime|int $delay,
string $job,
mixed $data = '')
Push a new job onto the queue after a delay.
at line line 107
mixed
bulk(
array $jobs,
mixed $data = '',
string $queue = null)
Push an array of jobs onto the queue.
at line line 51
void
__construct(
Connection $database,
string $table,
string $default = 'default',
int $expire = 60)
Create a new database queue instance.
at line line 67
mixed
push(
string $job,
mixed $data = '',
string $queue = null)
Push a new job onto the queue.
at line line 80
mixed
pushRaw(
string $payload,
string $queue = null,
array $options = array())
Push a raw payload onto the queue.
at line line 94
mixed
later(
DateTime|int $delay,
string $job,
mixed $data = '',
string $queue = null)
Push a new job onto the queue after a delay.
at line line 130
mixed
release(
string $queue,
StdClass $job,
int $delay)
Release a reserved job back onto the queue.
at line line 242
void
deleteReserved(
string $queue,
string $id)
Delete a reserved job from the queue.