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
Revoked tasks are not removed from DB #713
Comments
The implementation is correct, as far as I'm concerned. The I believe what is happening is:
The
|
Another thing you might try is adding a @huey.post_execute()
def clear_revoked_on_process(task, task_value, exc):
if 'process' in task.name:
huey.delete(task.revoke_id) |
After thinking about it a bit more, let's try this: 026a5ac -- this change ensures the task instance's revoked flag is cleared after it executes. This should address the scenario I described above, where the task is revoked some time while the task is being executed. |
Hi,
I noticed constant growth of my Redis DB size. The issue is in revoked tasks, which are not being removed:
I am using
PriorityRedisExpireStorage
and revocation is done in following way:I am checking implementation of
Huey
class, shouldn't_check_revoked
get the key withpeek=peek
?The text was updated successfully, but these errors were encountered: