Question about manually processing job status #2591
Unanswered
ckxddd0324
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Why are you calling |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am trying to build a queue with the worker (concurrency = 5). And the job will get updated by a callback(API request) from a 3rd party API. The job is pretty much in idle status and is waiting for the callback to come back and update the job status. It would be either to be completed or failed.
It seems like there is always an issue with missing thread/concurrency count after manually update one of the job with
moveToFailed
.Minimal, Working Test code to reproduce the issue.
the endpoint looks something like this
(An easy to reproduce test case will dramatically decrease the resolution time.)
active
statewaiting
statethe expectation of this case would be 5 and number of waiting job should be 1
Bull version
"@nestjs/bull": "^0.6.3"
"bull": "^4.10.4"
Additional information
building with nestjs
Beta Was this translation helpful? Give feedback.
All reactions