delete() public method

Delete the job from the queue.
public delete ( UrbanIndo\Yii2\Queue\Job $job ) : boolean
$job UrbanIndo\Yii2\Queue\Job The job.
return boolean whether the operation succeed.
示例#1
0
 /**
  * Delete the job.
  * @param Job $job
  * @return boolean whether the operation succeed.
  */
 public function delete(Job $job)
 {
     return $this->strategy->delete($job);
 }
示例#2
0
 /**
  * Delete the job.
  * @param Job $job The job.
  * @return boolean Whether the operation succeed.
  */
 protected function deleteJob(Job $job)
 {
     return $this->strategy->delete($job);
 }