mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Don't return from pruneDeadWorkers if there are no worker pids
This commit is contained in:
parent
b71031908d
commit
94fed1cfb4
@ -423,9 +423,6 @@ class Resque_Worker
|
|||||||
public function pruneDeadWorkers()
|
public function pruneDeadWorkers()
|
||||||
{
|
{
|
||||||
$workerPids = $this->workerPids();
|
$workerPids = $this->workerPids();
|
||||||
if(empty($workerPids)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$workers = self::all();
|
$workers = self::all();
|
||||||
foreach($workers as $worker) {
|
foreach($workers as $worker) {
|
||||||
list($host, $pid, $queues) = explode(':', (string)$worker, 3);
|
list($host, $pid, $queues) = explode(':', (string)$worker, 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user