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

Expire Redis Keys #149

Closed
Christof23 opened this issue Aug 11, 2023 · 4 comments
Closed

Expire Redis Keys #149

Christof23 opened this issue Aug 11, 2023 · 4 comments
Milestone

Comments

@Christof23
Copy link

Hi, is there any way to add an expiry to Redis keys to avoid memory overflow?

@geofmureithi
Copy link
Owner

apalis does not have a concept of vacuuming.
I can put that in the scope of v0.5 but for now you have to do it manually rg via cron

@geofmureithi geofmureithi added this to the 0.5 milestone Aug 11, 2023
@Christof23
Copy link
Author

Right OK, thanks. Will look to do it manually pending 0.5 :)

@geofmureithi
Copy link
Owner

Storage introduce a vacuum method
https://docs.rs/apalis/latest/apalis/prelude/trait.Storage.html#tymethod.vacuum

You can combine this with cron to occasionally clean done jobs.

@iZucken
Copy link
Contributor

iZucken commented Nov 11, 2024

@geofmureithi hello, I'm trying to use this crate and noticed that vacuum on redis storage does not clean up jobs in a way I expected, which effectively blocks me from using the crate as is, could you take a look at #446 ?

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

3 participants