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
Deletes old jobs, addresses search term race conditions, and adds "indexing" #218
Conversation
This allows easier future additions. Current options available are "indexes" (accepts a string) and "expires" (accepts a boolean)
Original way was more appropriate
This looks like a pretty cool commit, I want to test it out before I merge though. Do you have any of your tests handy? |
Thanks! Here's a gist with some fairly crappy, unstructured tests (I haven't been able to do a formal test suite yet). https://gist.github.com/brandoncarl/6011608 I've been using it in my application and debugging little bits as you can see from commit history. Fingers crossed, it seems decently stable. I thought maybe you could run it against existing test suite if you have one...I created it with backwards compatibility in mind. |
It doesn't seem to work for me! I merged it with my own for from the 0.6.2! I only replaced the kue dependency, not the default client code using it! |
@behrad in the latest kue release, has this been addressed somehow independent of this pull request? How else are you handling millions of jobs without some kind of expiry? My team would like to update to the latest kue but we need some kind of job expiry in production. |
We have written a watchdog script whose job is to delete completed/failed jobs living more than n minutes @wachunga |
Three proposed fixes in this pull request:
indexes
. When undefined, operates traditionally (for backwards-compatibility), a blank string indexes only the job type, otherwise, indexes only specified keys. Keys are separated by spaces. For example 'key3 key21 key33'.Furthermore, the state of Redis will look like this (assuming no other jobs):
Finally, I don't have access to the testing suite, but tried to run it through a number of scenarios ahead of submitting the pull request.
Brandon