class FailedJobs

Lists, retries and forgets failed jobs for the admin dashboard.

Retrying mirrors Illuminate\Queue\Console\RetryCommand exactly (reset attempts, refresh retryUntil, re-push raw, then forget) so the API and the queue:retry CLI command behave identically. Everything is driven by the queue.failer provider, so this works for any backend whose failer core knows about.

Methods

__construct(FailedJobProviderInterface $failer, Factory $queue, Dispatcher $events)

No description

array
all()

No description

bool
retry(string $id)

Re-dispatch a failed job and remove its failed record. Returns false if no such job exists.

void
retryAll()

No description

bool
forget(string $id)

No description

string
resetAttempts(string $payload)

No description

string
refreshRetryUntil(string $payload)

No description

mixed
instanceFromCommand(string $command)

No description

Details

__construct(FailedJobProviderInterface $failer, Factory $queue, Dispatcher $events)

Parameters

FailedJobProviderInterface $failer
Factory $queue
Dispatcher $events

array all()

Return Value

array

bool retry(string $id)

Re-dispatch a failed job and remove its failed record. Returns false if no such job exists.

Parameters

string $id

Return Value

bool

void retryAll()

Return Value

void

bool forget(string $id)

Parameters

string $id

Return Value

bool

protected string resetAttempts(string $payload)

Parameters

string $payload

Return Value

string

protected string refreshRetryUntil(string $payload)

Parameters

string $payload

Return Value

string

protected mixed instanceFromCommand(string $command)

Parameters

string $command

Return Value

mixed