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

JobCleaner context deadline #575

Closed
PumpkinSeed opened this issue Sep 2, 2024 · 1 comment
Closed

JobCleaner context deadline #575

PumpkinSeed opened this issue Sep 2, 2024 · 1 comment

Comments

@PumpkinSeed
Copy link
Contributor

PumpkinSeed commented Sep 2, 2024

Problem

JobCleaner runOnce has a strict deadline which 30*time.Second, that would be nice to set it dynamically.

Reason

We got a bigger load in our queue, which was 15.000.000 job per day and our cleanup process removes the completed jobs after 3 day. But the actual cleanup always failed because of this context deadline which resulted performance issues, because other queries of the riverqueue started to slow down since the cleanup process never succeed. We have time to complete this task so it would be nice to set this context deadline.

@PumpkinSeed
Copy link
Contributor Author

That has been resolved.

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

No branches or pull requests

1 participant