mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-21 16:01: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
@ -62,7 +62,7 @@ class Resque
|
||||
self::$redis = new Resque_Redis($server, self::$redisDatabase);
|
||||
return self::$redis;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* fork() helper method for php-resque that handles issues PHP socket
|
||||
* and phpredis have with passing around sockets between child/parent
|
||||
|
@ -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