public function execute(Job $job) { parent::execute($job); $e = new JobException(200, 'All done'); $e->setStatus(Job::STATUS_SUCCESS)->setResult(array('testing' => 'value')); throw $e; }
public function execute(Job $job) { parent::execute($job); $e = new JobException(400, 'One of orchestration tasks failed'); $e->setStatus(Job::STATUS_WARNING)->setResult(array('testing' => 'value')); throw $e; }
/** * @param Job $job * @return array */ public function execute(Job $job) { parent::execute($job); $this->job = $job; return ['testing' => 'HookExecutor']; }
public function cleanup(Job $job) { parent::cleanup($job); }
public function execute(Job $job) { parent::execute($job); throw new MaintenanceException('maintenance'); }