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
waitUntillFinished throws error for failed jobs #1031
Comments
The code that throws the error is here: Lines 741 to 806 in e55ff35
Based on this, it seems clear that the intention is to reject the promise if the job has failed. IMO this is misleading since "finished" means either completed or failed. Since changing this would lead to breaking changes, perhaps just the documentation should be updated to clarify |
updates the documentation of the method to match the actual behavior, which returns a rejected promise when job failes. closes taskforcesh#1031
🎉 This issue has been resolved in version 1.68.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hello,
I have the following code. Assume there is some processor that throws an error when processing job
I would expect this code to print "true". However, the waitUntillFinished line instead throws the error, causing the process to end. Why is this? The description for the method states
Returns a promise the resolves when the job has finished. (completed or failed).
I interpreted this to mean that the promise will always resolve even if the job fails. Does the documentation need to be changed?The text was updated successfully, but these errors were encountered: