DatabaseQueueDriver
class DatabaseQueueDriver implements QueueDriverInterface
Implements the QueueDriverInterface. This driver implements functions that support database queue operations.
Methods
void
delete(mixed $jobId)
Deletes a job from the queue.
array|null
pop(string $queue)
Retrieves and reserves the next available job from the specified queue.
void
push(string $queue, array $payload)
Pushes a new job onto the specified queue.
void
release(string $queue, array $payload, int $delay = 0)
Releases a job back onto the queue after a failure or delay.
Details
at line 19
void
delete(mixed $jobId)
Deletes a job from the queue.
at line 32
array|null
pop(string $queue)
Retrieves and reserves the next available job from the specified queue.
at line 50
void
push(string $queue, array $payload)
Pushes a new job onto the specified queue.
at line 67
void
release(string $queue, array $payload, int $delay = 0)
Releases a job back onto the queue after a failure or delay.