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
@ -62,7 +62,7 @@ class Resque
|
|||||||
self::$redis = new Resque_Redis($server, self::$redisDatabase);
|
self::$redis = new Resque_Redis($server, self::$redisDatabase);
|
||||||
return self::$redis;
|
return self::$redis;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fork() helper method for php-resque that handles issues PHP socket
|
* fork() helper method for php-resque that handles issues PHP socket
|
||||||
* and phpredis have with passing around sockets between child/parent
|
* and phpredis have with passing around sockets between child/parent
|
||||||
|
@ -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