DatabaseFailedJobProvider
class DatabaseFailedJobProvider implements CountableFailedJobProvider, FailedJobProviderInterface, PrunableFailedJobProvider
Methods
Create a new database failed job provider.
Get the IDs of all of the failed jobs.
Get a list of all of the failed jobs.
Get a single failed job.
Delete a single failed job from storage.
Flush all of the failed jobs from storage.
Count the failed jobs.
Details
at line 18
__construct(ConnectionResolverInterface $resolver, string|null $database, string $table)
Create a new database failed job provider.
at line 28
int|string|null
log(string $connection, string $queue, string $payload, Throwable $exception)
Log a failed job into storage.
at line 46
array
ids(string $queue = null)
Get the IDs of all of the failed jobs.
at line 58
array
all()
Get a list of all of the failed jobs.
at line 66
object|null
find(mixed $id)
Get a single failed job.
at line 74
bool
forget(mixed $id)
Delete a single failed job from storage.
at line 82
void
flush(int|null $hours = null)
Flush all of the failed jobs from storage.
at line 92
int
prune(DateTimeInterface $before)
Prune all of the entries older than the given date.
at line 110
int
count(string|null $connection = null, string|null $queue = null)
Count the failed jobs.
at line 121
Builder
getTable()
Get a new query builder instance for the table.