Job
Methods
uuid ( ) : string|null
Get the UUID of the job.
getJobId ( ) : string
Get the job identifier.
payload ( ) : array
Get the decoded body of the job.
fire ( ) : void
Fire the job.
release ( $delay ) : void
Release the job back into the queue after (n) seconds.
Parameters
- $delay int
isReleased ( ) : bool
Determine if the job was released back into the queue.
delete ( ) : void
Delete the job from the queue.
isDeleted ( ) : bool
Determine if the job has been deleted.
isDeletedOrReleased ( ) : bool
Determine if the job has been deleted or released.
attempts ( ) : int
Get the number of times the job has been attempted.
hasFailed ( ) : bool
Determine if the job has been marked as a failure.
markAsFailed ( ) : void
Mark the job as "failed".
fail ( $e ) : void
Delete the job, call the "failed" method, and raise the failed job event.
Parameters
- $e Throwable |null
maxTries ( ) : int|null
Get the number of times to attempt a job.
maxExceptions ( ) : int|null
Get the maximum number of exceptions allowed, regardless of attempts.
timeout ( ) : int|null
Get the number of seconds the job can run.
retryUntil ( ) : int|null
Get the timestamp indicating when the job should timeout.
getName ( ) : string
Get the name of the queued job class.
resolveName ( ) : string
Get the resolved name of the queued job class.
getConnectionName ( ) : string
Get the name of the connection the job belongs to.
getQueue ( ) : string
Get the name of the queue the job belongs to.
getRawBody ( ) : string
Get the raw body string for the job.