src/Model/Table/QueuedJobsTable.php
public function markJobFailed(QueuedJob $job, $failureMessage = null) {
		$fields = [
			'failed' => $job->failed + 1,
			'failure_message' => $failureMessage,
		];
		$job = $this->patchEntity($job, $fields);

		return (bool)$this->save($job);
	}
public function markJobFailed(QueuedJob $job, $failureMessage = null) {
		$fields = [
			'failed' => $job->failed + 1,
			'failure_message' => $failureMessage,
		];
		$job = $this->patchEntity($job, $fields);

		return (bool)$this->save($job);
	}
public function markJobFailed ( QueuedJob $ job , $ failureMessage = null ) { $ fields = [ 'failed' => $ job -> failed + 1 , 'failure_message' => $ failureMessage , ] ; $ job = $ this -> patchEntity ( $ job , $ fields ) ; return ( bool ) $ this -> save ( $ job ) ; }
Mark a job as Failed, incrementing the failed-counter and Requeueing it.

@param \Queue\Model\Entity\QueuedJob $job Job
@param string|null $failureMessage Optional message to append to the failure_message field.
@return bool Success
Mark a job as Failed incrementing the failed - counter and Requeueing it .