public function sleep($seconds)
    {
        foreach ($this->eyeQueues as $queue) {
            $this->cache->add('eyewitness_q_idle_time_'.$queue->id, 0, 180);

            if ($seconds < 1) {
                $this->cache->increment('eyewitness_q_idle_time_'.$queue->id, 1);
            } else {
                $this->cache->increment('eyewitness_q_idle_time_'.$queue->id, round($seconds));
            }
        }

        parent::sleep($seconds);
    }
public function sleep($seconds)
    {
        foreach ($this->eyeQueues as $queue) {
            $this->cache->add('eyewitness_q_idle_time_'.$queue->id, 0, 180);

            if ($seconds < 1) {
                $this->cache->increment('eyewitness_q_idle_time_'.$queue->id, 1);
            } else {
                $this->cache->increment('eyewitness_q_idle_time_'.$queue->id, round($seconds));
            }
        }

        parent::sleep($seconds);
    }
public function sleep ( $ seconds ) { foreach ( $ this -> eyeQueues as $ queue ) { $ this -> cache -> add ( 'eyewitness_q_idle_time_' . $ queue -> id , 0 , 180 ) ; if ( $ seconds < 1 ) { $ this -> cache -> increment ( 'eyewitness_q_idle_time_' . $ queue -> id , 1 ) ; } else { $ this -> cache -> increment ( 'eyewitness_q_idle_time_' . $ queue -> id , round ( $ seconds ) ) ; } } parent :: sleep ( $ seconds ) ; }
Capture how long a worker is sleeping for. We need to cycle all tubes this worker checks to
give each of them credit for the sleep. This allows us to handle different worker configurations
and should cover all situations.

@param  int|float  $seconds
@return void
Capture how long a worker is sleeping for . We need to cycle all tubes this worker checks to give each of them credit for the sleep . This allows us to handle different worker configurations and should cover all situations .