Skip to content

Commit 10c1d0b

Browse files
author
Petr Trofimov
committed
Resque/Worker: removed reestablishConnection
1 parent 468f1ce commit 10c1d0b

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
@@ -350,7 +350,6 @@ private function registerSigHandlers()
350350
pcntl_signal(SIGUSR1, array($this, 'killChild'));
351351
pcntl_signal(SIGUSR2, array($this, 'pauseProcessing'));
352352
pcntl_signal(SIGCONT, array($this, 'unPauseProcessing'));
353-
pcntl_signal(SIGPIPE, array($this, 'reestablishRedisConnection'));
354353
$this->logger->log(Psr\Log\LogLevel::DEBUG, 'Registered signals');
355354
}
356355

@@ -373,16 +372,6 @@ public function unPauseProcessing()
373372
$this->paused = false;
374373
}
375374

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

0 commit comments

Comments
 (0)