-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Issue returning a rejected promise in worker #2
Comments
What version of |
This is an interesting issue. It boils down to the processor expecting that if your job returns a rejected promise, that there's an error that it is rejecting with—rather than I think this article "A String is not an Error" may articulate the nuance here. It is important to always use an error where one is expected, though node itself doesn't enforce this. I think I'll probably make an update to to accept a string (and maybe worse, |
fix in |
Thanks for the explanation, that makes sense. I wouldn't have even seen it had I actually been using real data that would have passed a proper error. 👍 |
Thanks for writing this.
I'm running into an issue when I return a rejected promise inside a worker. The job gets stuck in busy until timeout. It works fine if I return a resolved promise.
Any ideas?
Here is my worker
Pushing into the queue
Here is the error message
The text was updated successfully, but these errors were encountered: