RedisJob::__construct()

__construct(Container $container, RedisQueue $redis, string $job, string $reserved, string $queue) Create a new job instance. Parameters Container $container RedisQueue $redis string $job string $reserved string $queue

RedisQueue

RedisQueue class RedisQueue extends Queue implements Queue (View source) Methods mixed pushOn(string $queue, string $job, mixed $data = '') Push a new job onto the queue. from Queue mixed laterOn(string $queue, DateTime|int $delay, string $job, mixed $data = '') Push a new job onto the queue after a delay. from Queue mixed bulk(array $jobs, mixed $data = '', string $queue = null) Push an array of jobs onto the queue. from Queue void setContainer(Container $container) Set the I

RedisQueue::bulk()

mixed bulk(array $jobs, mixed $data = '', string $queue = null) Push an array of jobs onto the queue. Parameters array $jobs mixed $data string $queue Return Value mixed

RedisQueue::deleteAndRelease()

void deleteAndRelease(string $queue, string $job, int $delay) Delete a reserved job from the reserved queue and release it. Parameters string $queue string $job int $delay Return Value void

RedisQueue::deleteReserved()

void deleteReserved(string $queue, string $job) Delete a reserved job from the queue. Parameters string $queue string $job Return Value void

RedisQueue::getRedis()

Database getRedis() Get the underlying Redis instance. Return Value Database

RedisQueue::later()

mixed later(DateTime|int $delay, string $job, mixed $data = '', string $queue = null) Push a new job onto the queue after a delay. Parameters DateTime|int $delay string $job mixed $data string $queue Return Value mixed

RedisQueue::laterOn()

mixed laterOn(string $queue, DateTime|int $delay, string $job, mixed $data = '') Push a new job onto the queue after a delay. Parameters string $queue DateTime|int $delay string $job mixed $data Return Value mixed

RedisQueue::migrateExpiredJobs()

void migrateExpiredJobs(string $from, string $to) Migrate the delayed jobs that are ready to the regular queue. Parameters string $from string $to Return Value void

RedisQueue::pop()

Job|null pop(string $queue = null) Pop the next job off of the queue. Parameters string $queue Return Value Job|null