Skip to content

feat: add recurring cleanup job to generator #564

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

Closed

Conversation

elasticspoon
Copy link

Motivation

At my work we have been trying to unify our applications on solid queue for background job processing and we found pretty consistently that when developers were setting it up they did not realize that they would need to schedule a job to clear out finished jobs. (I only learned about this when I had 12M finished jobs and my dashboard had slowed to a crawl).

Its not immediately clear that finished jobs need to be cleaned up or that solid queue has a built in way to do that. The only mention of this in the README is part of a bullet under additional config.

Implementation

I think adding a note and implementation of this behavior directly to the recurring.yml that is generated when installing would make it a lot easier for developers to realize that they may need to add this recurring job.

@rosa
Copy link
Member

rosa commented Jun 13, 2025

Thanks @elasticspoon! And sorry for the delay, I skipped this PR because it was marked as draft, but I think it's ready!

@rosa rosa marked this pull request as ready for review June 13, 2025 13:28
Its not immediately clear that finished jobs need to be cleaned up or
that solid queue has a built in way to do that.

This adds a commented out implementation of that recurring behavior to
the generator to make is easier for users to learn about the behavior.
@rosa rosa force-pushed the add-cleanup-job-to-generator branch from b405ca8 to 4a95bd1 Compare June 13, 2025 13:28
@rosa
Copy link
Member

rosa commented Jun 13, 2025

Thanks a lot @elasticspoon! Sorry for the delay, I'm finally catching up on PRs. I'm going to go with #562 but modified, so the job is actually run and not just commented out.

@rosa rosa closed this Jun 13, 2025
@elasticspoon elasticspoon deleted the add-cleanup-job-to-generator branch June 13, 2025 17:35
@elasticspoon
Copy link
Author

Thanks a lot @elasticspoon! Sorry for the delay, I'm finally catching up on PRs. I'm going to go with #562 but modified, so the job is actually run and not just commented out.

Cool! I had this in draft cause I wasn't sure which is better.

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.

2 participants