class Illuminate / Queue / Jobs / DatabaseJob
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

DatabaseJob

Extends

Implements

Properties

protected

$database DatabaseQueue

The database queue instance.

Default: null
protected

$job stdClass

The database job payload.

Default: null

Methods

public

__construct ( Container $container , DatabaseQueue $database , $job , $connectionName , $queue ) : void

Create a new job instance.

Parameters

public

release ( $delay ) : void

Release the job back into the queue after (n) seconds.

Parameters

  • $delay int
public

delete ( ) : void

Delete the job from the queue.

public

attempts ( ) : int

Get the number of times the job has been attempted.

public

getJobId ( ) : string

Get the job identifier.

public

getRawBody ( ) : string

Get the raw body string for the job.

public

getJobRecord ( ) : DatabaseJobRecord

Get the database job record.