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

The failed_jobs cleanup job should run more often than once per day #332

Conversation

kathap
Copy link
Contributor

@kathap kathap commented Jul 31, 2023

So far failed_jobs was running once per day. We want to let it run more often, therefore we need to add the necessary params.
Failed_jobs is changed to also cleanup failed entries from the delayed_jobs table that exceeds a defined maximum number of entries in order to prevent overload of the db. The new parameter max_number_of_failed_delayed_jobs is optional.
With this change the job should runs more often than once per day (default is every 4h) to ensure db is not overloaded.

@kathap kathap force-pushed the adapt-failed-jobs-to-run-frequently-add-new-optional-parameter branch from 7d8cd41 to 13ba8d5 Compare July 31, 2023 10:26
Copy link
Contributor

@johha johha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@johha johha merged commit ac31137 into cloudfoundry:develop Jul 31, 2023
@johha johha mentioned this pull request Jul 31, 2023
3 tasks
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.

3 participants