-
-
Notifications
You must be signed in to change notification settings - Fork 768
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
[BUG] Task stuck in active state forever #420
Comments
@mailbaoer Thank you for opening an issue! Would you mind providing the version of asynq package you are using :) |
I'm use 0.22.1 now, but this bug may exists before this version, I've see this in other versions, maybe 0.18 for my first time use asynq |
I see. We've made some improvements around orphaned task recovery in v0.22. If you are using latest version of Web UI (v0.6.0), you'll see the status of the tasks will show "Orphaned". This happens when a worker start working on a task but crashes before completing the processing. If you run a server against the same queue, they'll be recovered automatically after some time period (i.e. after a few heartbeat misses). Once the task is orphaned, they are no longer cancelable (the latest web UI will disable the cancel button) Follow up questions:
|
Ok, thanks for providing that info. Would you mind running this command:
|
That's very strange. I thought you'd have entries in either Please let me know if you can reproduce this, I'd like to know how to reproduce this bug. If you need to address this manually, you can get a list of "active" tasks and put their IDs back in the pending list (note: the IDs you see in the image above is just a prefix, so make sure to click into each row to get the full ID)
|
Thank you very much for your patience in answering, if I encounter this problem again I will check to see if I can reproduce it |
any update? I met this bug too. asynq v0.22.1, redis v5.0.7 |
@namhq1989 Thanks for the comment. We're looking for a way to reproduce this. For anyone experienced this bug, please provide the following:
|
|
I met this too.. If it happens again, I will try to investigate it. |
Hi, we never had this problem as we never used asynq before. BUT if anyone could describe how to reproduce this bug and it gets fixed/solved, it would help us choosing the right distributed task queue for our projects. Currently choosing from ~5 contestants. Thanks a lot to everyone! |
I encountered this problem in the following versions, the task is always in the active state after the worker restarts, and the task cannot be closed
|
We accidentally met this kind of issue. What we did:
This led to a problem that those services started "stealing" each others tasks. So we made a mistake, that we didn't pass DB number into |
Describe the bug
I have some tasks not set timeout, for a long time run, I found some tasks are always in running state, I tried to cancel them in web ui or cli, they can't be canceled, and the state changed to running after canceling
To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
sorry, I don't know how reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environment (please complete the following information):
asynq
package [e.g. v1.0.0]Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: