InteractsWithQueue
Table of Contents
- $job : Job
- The underlying queue job instance.
- attempts() : int
- Get the number of times the job has been attempted.
- delete() : void
- Delete the job from the queue.
- fail() : void
- Fail the job from the queue.
- release() : void
- Release the job back into the queue.
- setJob() : $this
- Set the base queue job instance.
Properties
$job
The underlying queue job instance.
protected
Job
$job
Methods
attempts()
Get the number of times the job has been attempted.
public
attempts() : int
Return values
int —delete()
Delete the job from the queue.
public
delete() : void
Return values
void —fail()
Fail the job from the queue.
public
fail([Throwable $exception = null ]) : void
Parameters
- $exception : Throwable = null
Return values
void —release()
Release the job back into the queue.
public
release(int $delay) : void
Parameters
- $delay : int
Return values
void —setJob()
Set the base queue job instance.
public
setJob(Job $job) : $this
Parameters
- $job : Job