mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Merge branch 'blocking-list-pop' of github.com:ruudk/php-resque into blocking-list-pop
Conflicts: bin/resque lib/Resque.php lib/Resque/Job.php
This commit is contained in:
commit
2794dd54a9
@ -58,13 +58,11 @@ class Resque_Job
|
||||
);
|
||||
}
|
||||
$id = md5(uniqid('', true));
|
||||
if (!Resque::push($queue, array(
|
||||
Resque::push($queue, array(
|
||||
'class' => $class,
|
||||
'args' => array($args),
|
||||
'id' => $id,
|
||||
))) {
|
||||
return false;
|
||||
}
|
||||
));
|
||||
|
||||
if($monitor) {
|
||||
Resque_Job_Status::create($id);
|
||||
|
Loading…
Reference in New Issue
Block a user