Jobs stuck in "unknown" state after runtime crash #3254
Unanswered
matthieu-beteille
asked this question in
Q&A
Replies: 2 comments 6 replies
-
There are no known cases where this could happen, and we are very interested to know if they are. When you say OOM, do you mean your process went out of memory or the Redis instance itself? If it is the second, then maybe there could be some unknown edge case where atomicity is not preserved by Redis. In general when Redis hits OOM, it is quite difficult to even clean the queues as many commands stop working. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, the process went out of memory not the redis instance itself. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm experiencing an issue where after a runtime crash (typically when the event loop gets hogged for a while followed by an OOM) some jobs end up in what appears to be an "unknown" state in Redis.
These affected jobs:
getJobs()
queue.getJob()
with their specific job IDQuestion
I understand this behavior is likely related to my process crashing during job execution and is not an expected case, but I'm trying to understand:
Right now the only way I can get out of this limbo state is by getting each individual job using
.getJob
and removing them individually (which is not convenient since i need to know all "ghost" job ids in advance)I've attempted to reproduce this locally but have been unsuccessful so far (will try further). I understand this is not a complete bug report, but wanted to check if anyone has encountered similar behavior or if there are known circumstances that could lead to this.
Beta Was this translation helpful? Give feedback.
All reactions