class DynamoDbFailedJobProvider implements FailedJobProviderInterface (View source)

Properties

protected DynamoDbClient $dynamo

The DynamoDB client instance.

protected string $applicationName

The application name.

protected string $table

The table name.

Methods

void
__construct(DynamoDbClient $dynamo, string $applicationName, string $table)

Create a new DynamoDb failed job provider.

string|int|null
log(string $connection, string $queue, string $payload, Throwable $exception)

Log a failed job into storage.

array
ids(string $queue = null)

Get the IDs of all of the failed jobs.

array
all()

Get a list of all of the failed jobs.

object|null
find(mixed $id)

Get a single failed job.

bool
forget(mixed $id)

Delete a single failed job from storage.

void
flush(int|null $hours = null)

Flush all of the failed jobs from storage.

Details

void __construct(DynamoDbClient $dynamo, string $applicationName, string $table)

Create a new DynamoDb failed job provider.

Parameters

DynamoDbClient $dynamo
string $applicationName
string $table

Return Value

void

string|int|null log(string $connection, string $queue, string $payload, Throwable $exception)

Log a failed job into storage.

Parameters

string $connection
string $queue
string $payload
Throwable $exception

Return Value

string|int|null

array ids(string $queue = null)

Get the IDs of all of the failed jobs.

Parameters

string $queue

Return Value

array

array all()

Get a list of all of the failed jobs.

Return Value

array

object|null find(mixed $id)

Get a single failed job.

Parameters

mixed $id

Return Value

object|null

bool forget(mixed $id)

Delete a single failed job from storage.

Parameters

mixed $id

Return Value

bool

void flush(int|null $hours = null)

Flush all of the failed jobs from storage.

Parameters

int|null $hours

Return Value

void

Exceptions

Exception

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.