DatabaseJob
class DatabaseJob extends Job implements Job (View source)
Methods
void
fire()
Fire the job.
void
delete()
Delete the job from the queue.
void
release(
int $delay)
Release the job back into the queue.
int
attempts()
Get the number of times the job has been attempted.
string
getRawBody()
Get the raw body string for the job.
void
__construct(
Container $container,
DatabaseQueue $database,
StdClass $job,
string $queue)
Create a new job instance.
string
getJobId()
Get the job identifier.
getContainer()
Get the IoC container instance.
getDatabaseQueue()
Get the underlying queue driver instance.
getDatabaseJob()
Get the underlying database job.
Details
at line line 34
void
__construct(
Container $container,
DatabaseQueue $database,
StdClass $job,
string $queue)
Create a new job instance.