DatabaseJobRecord
class DatabaseJobRecord
Traits
Properties
| int | $id | ||
| string | $payload | ||
| int | $attempts |
Methods
Get the number of seconds until the given DateTime.
Get the "available at" UNIX timestamp.
If the given value is an interval, convert it to a DateTime instance.
Given a start time, format the total run time for human readability.
Increment the number of times the job has been attempted.
Update the "reserved at" timestamp of the job.
Dynamically access the underlying job information.
Details
in
InteractsWithTime at line 17
protected int
secondsUntil(DateInterval|DateTimeInterface|int $delay)
Get the number of seconds until the given DateTime.
in
InteractsWithTime at line 29
protected int
availableAt(DateInterval|DateTimeInterface|int|null $delay = 0)
Get the "available at" UNIX timestamp.
in
InteractsWithTime at line 41
protected DateTimeInterface|int
parseDateInterval(DateInterval|DateTimeInterface|int|null $delay)
If the given value is an interval, convert it to a DateTime instance.
in
InteractsWithTime at line 57
protected int
currentTime()
Get the current system time as a UNIX timestamp.
in
InteractsWithTime at line 65
protected string
runTimeForHumans(float $startTime, float|null $endTime = null)
Given a start time, format the total run time for human readability.
at line 22
__construct(stdClass $record)
Create a new job record instance.
at line 30
int
increment()
Increment the number of times the job has been attempted.
at line 40
int
touch()
Update the "reserved at" timestamp of the job.
at line 50
__get(string $key)
Dynamically access the underlying job information.