JobRepository
interface JobRepository
Methods
Get the next job ID that should be assigned.
Get the total count of recent jobs.
Get the total count of failed jobs.
Get a chunk of recent jobs.
Get a chunk of failed jobs.
Get a chunk of pending jobs.
Get a chunk of completed jobs.
Get a chunk of silenced jobs.
Get the count of recent jobs.
Get the count of failed jobs.
Get the count of pending jobs.
Get the count of completed jobs.
Get the count of silenced jobs.
Get the count of the recently failed jobs.
Retrieve the jobs with the given IDs.
Mark the job as released / pending.
Mark the job as completed and monitored.
Mark the given jobs as released / pending.
Handle the storage of a completed job.
Delete the given monitored jobs by IDs.
Trim the recent job list.
Trim the failed job list.
Trim the monitored job list.
Find a failed job by ID.
Mark the job as failed.
Store the retry job ID on the original job record.
Delete a failed job by ID.
Details
at line 17
string
nextJobId()
Get the next job ID that should be assigned.
at line 22
int
totalRecent()
Get the total count of recent jobs.
at line 27
int
totalFailed()
Get the total count of failed jobs.
at line 32
Collection
getRecent(int|null $afterIndex = null)
Get a chunk of recent jobs.
at line 37
Collection
getFailed(int|null $afterIndex = null)
Get a chunk of failed jobs.
at line 42
Collection
getPending(int|null $afterIndex = null)
Get a chunk of pending jobs.
at line 47
Collection
getCompleted(int|null $afterIndex = null)
Get a chunk of completed jobs.
at line 52
Collection
getSilenced(int|null $afterIndex = null)
Get a chunk of silenced jobs.
at line 57
int
countRecent()
Get the count of recent jobs.
at line 62
int
countFailed()
Get the count of failed jobs.
at line 67
int
countPending()
Get the count of pending jobs.
at line 72
int
countCompleted()
Get the count of completed jobs.
at line 77
int
countSilenced()
Get the count of silenced jobs.
at line 82
int
countRecentlyFailed()
Get the count of the recently failed jobs.
at line 87
Collection
getJobs(array $ids, mixed $indexFrom = 0)
Retrieve the jobs with the given IDs.
at line 92
void
pushed(string $connection, string $queue, JobPayload $payload)
Insert the job into storage.
at line 97
void
reserved(string $connection, string $queue, JobPayload $payload)
Mark the job as reserved.
at line 102
void
released(string $connection, string $queue, JobPayload $payload, int $delay = 0)
Mark the job as released / pending.
at line 107
void
remember(string $connection, string $queue, JobPayload $payload)
Mark the job as completed and monitored.
at line 112
void
migrated(string $connection, string $queue, Collection $payloads)
Mark the given jobs as released / pending.
at line 117
void
completed(JobPayload $payload, bool $failed = false, bool $silenced = false)
Handle the storage of a completed job.
at line 122
void
deleteMonitored(array $ids)
Delete the given monitored jobs by IDs.
at line 127
void
trimRecentJobs()
Trim the recent job list.
at line 132
void
trimFailedJobs()
Trim the failed job list.
at line 137
void
trimMonitoredJobs()
Trim the monitored job list.
at line 142
stdClass|null
findFailed(string $id)
Find a failed job by ID.
at line 147
void
failed(Throwable $exception, string $connection, string $queue, JobPayload $payload)
Mark the job as failed.
at line 152
void
storeRetryReference(string $id, string $retryId)
Store the retry job ID on the original job record.
at line 157
int
deleteFailed(string $id)
Delete a failed job by ID.