Автор: MGriesbach@gmail.com
Наследование: extends Cake\Console\Shell
Пример #1
0
 /**
  * Get task configuration
  *
  * @return array
  */
 protected function _getTaskConf()
 {
     parent::_getTaskConf();
     foreach ($this->_taskConf as &$conf) {
         $conf['timeout'] = 5;
         $conf['retries'] = 1;
     }
     return $this->_taskConf;
 }
Пример #2
0
 /**
  * QueueShellTest::testRetry()
  *
  * @return void
  */
 public function testRetry()
 {
     $this->QueueShell->args[] = 'RetryExample';
     $this->QueueShell->add();
     $expected = 'This is a very simple example of a QueueTask and how retries work';
     $this->assertContains($expected, $this->out->output());
     $this->QueueShell->runworker();
     $this->assertContains('Job did not finish, requeued.', $this->out->output());
 }