Skip to content

Commit b3c9336

Browse files
committed
Merge pull request #127 from ptrofimov/bug/establishConnection
Resque/Worker: removed reestablishConnection
2 parents 7f2cba1 + 10c1d0b commit b3c9336

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/Resque/Worker.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ private function registerSigHandlers()
354354
pcntl_signal(SIGUSR1, array($this, 'killChild'));
355355
pcntl_signal(SIGUSR2, array($this, 'pauseProcessing'));
356356
pcntl_signal(SIGCONT, array($this, 'unPauseProcessing'));
357-
pcntl_signal(SIGPIPE, array($this, 'reestablishRedisConnection'));
358357
$this->logger->log(Psr\Log\LogLevel::DEBUG, 'Registered signals');
359358
}
360359

@@ -377,16 +376,6 @@ public function unPauseProcessing()
377376
$this->paused = false;
378377
}
379378

380-
/**
381-
* Signal handler for SIGPIPE, in the event the redis connection has gone away.
382-
* Attempts to reconnect to redis, or raises an Exception.
383-
*/
384-
public function reestablishRedisConnection()
385-
{
386-
$this->logger->log(Psr\Log\LogLevel::NOTICE, 'SIGPIPE received; attempting to reconnect');
387-
Resque::redis()->establishConnection();
388-
}
389-
390379
/**
391380
* Schedule a worker for shutdown. Will finish processing the current job
392381
* and when the timeout interval is reached, the worker will shut down.

0 commit comments

Comments
 (0)