mirror of
https://github.com/idanoo/php-resque
synced 2025-07-02 22:22:21 +00:00
Update composer
This commit is contained in:
parent
80d64e79ff
commit
dd0bb8947f
16 changed files with 152 additions and 143 deletions
|
@ -149,6 +149,7 @@ class Worker
|
|||
*
|
||||
* @param int $interval How often to check for new jobs across the queues.
|
||||
* @param bool $blocking
|
||||
*
|
||||
* @throws Resque_RedisException
|
||||
*/
|
||||
public function work($interval = Resque::DEFAULT_INTERVAL, $blocking = false)
|
||||
|
@ -524,7 +525,7 @@ class Worker
|
|||
'run_at' => strftime('%a %b %d %H:%M:%S %Z %Y'),
|
||||
'payload' => $job->payload
|
||||
]);
|
||||
Resque::redis()->set('worker:' . $job->worker, $data);
|
||||
Resque::redis()->setex('worker:' . $job->worker, 172800, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue