unPauseProcessing() public method

Signal handler callback for CONT, resumes worker allowing it to pick up new jobs.
public unPauseProcessing ( )
示例#1
0
 public function testResumedWorkerPicksUpJobs()
 {
     $worker = new Resque_Worker('*');
     $worker->pauseProcessing();
     Resque::enqueue('jobs', 'Test_Job');
     $worker->work(0);
     $this->assertEquals(0, Resque_Stat::get('processed'));
     $worker->unPauseProcessing();
     $worker->work(0);
     $this->assertEquals(1, Resque_Stat::get('processed'));
 }