FileFailedJobProvider
class FileFailedJobProvider implements CountableFailedJobProvider, FailedJobProviderInterface, PrunableFailedJobProvider
Methods
Create a new file 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 the failed jobs from storage.
Read the failed jobs file.
Write the given array of jobs to the failed jobs file.
Count the failed jobs.
Details
at line 21
__construct(string $path, int $limit = 100, Closure|null $lockProviderResolver = null)
Create a new file failed job provider.
at line 31
int|string|null
log(string $connection, string $queue, string $payload, Throwable $exception)
Log a failed job into storage.
at line 63
array
ids(string|null $queue = null)
Get the IDs of all of the failed jobs.
at line 76
array
all()
Get a list of all of the failed jobs.
at line 84
object|null
find(mixed $id)
Get a single failed job.
at line 93
bool
forget(mixed $id)
Delete a single failed job from storage.
at line 108
void
flush(int|null $hours = null, string|null $queue = null)
Flush the failed jobs from storage.
at line 124
int
prune(DateTimeInterface $before)
Prune all of the entries older than the given date.
at line 148
protected mixed
lock(Closure $callback)
Execute the given callback while holding a lock.
at line 165
protected array
read()
Read the failed jobs file.
at line 193
protected void
write(array $jobs)
Write the given array of jobs to the failed jobs file.
at line 241
int
count(string|null $connection = null, string|null $queue = null)
Count the failed jobs.