Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Adds support to allow specifying number of days to keep failed jobs in DynamoDB #54295

Open
wants to merge 2 commits into
base: 11.x
Choose a base branch
from

Conversation

j-fulbright
Copy link

This PR adds a new config option for queue.failed (when using DynamoDB): expire_days

This allows controlling the expires_at value for jobs that are inserted into DynamoDB, instead of the hardcoded value of 3. (Still defaulted to 3 in the absence of the config option)


This pull request introduces changes to the DynamoDbFailedJobProvider class to make the expiration period for failed jobs configurable. The main modifications include adding a new property for expiration days, updating the constructor to accept this new parameter, and adjusting the tests to accommodate this change.

Key changes:

Configuration of Expiration Days:

Service Provider Adjustment:

Test Updates:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant