/** * 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); }