mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +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));
|
$id = md5(uniqid('', true));
|
||||||
if (!Resque::push($queue, array(
|
Resque::push($queue, array(
|
||||||
'class' => $class,
|
'class' => $class,
|
||||||
'args' => array($args),
|
'args' => array($args),
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
))) {
|
));
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($monitor) {
|
if($monitor) {
|
||||||
Resque_Job_Status::create($id);
|
Resque_Job_Status::create($id);
|
||||||
|
Loading…
Reference in New Issue
Block a user