コード例 #1
0
ファイル: Worker.php プロジェクト: mjphaynes/php-resque
 /**
  * Signal handler for SIGPIPE, in the event the Redis connection has gone away.
  * Attempts to reconnect to Redis, or raises an Exception.
  */
 public function sigWakeUp()
 {
     $this->log('SIGPIPE received; attempting to wake up', Logger::DEBUG);
     $this->redis->establishConnection();
     Event::fire(Event::WORKER_WAKEUP, $this);
 }