-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fix false positive reporting of sync tasks on errors #204
Conversation
} | ||
|
||
function errorFunction() { | ||
throw new Error('Error!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're not completing this task, cb(new Error('Error!'))
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fine, the domains will catch it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I thought too. Our documentation makes it clear synchronous tasks aren't supported, and throwing an error is technically synchronous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the test. But the effect is the same. An exception thrown synchronously is already catched and considered as a failure completion.
This solution seems solid but give me a bit to think on it. Should be able to ship this weekend. |
test test failure on node 0.10 looks unrelated to my change. |
and indeed, the latest build on master has even more such timeout failures. |
@phated did you have a chance to think about it ? |
@stof thanks for the reminder! Actually, something came to mind this morning: I think we need to support the I'm not sure how hard it will be to thread that flag through the system. It can be specified in the config file too, so we have to thread it from the main function. |
I would prefer if you could work on adding support for |
@phated AFAIU, even in |
@phated PR updated to account for |
@stof thanks, looking at this today. |
@phated any news on this ? |
When a failure happens in a parallel task, it is totally normal that other tasks have not reported completion, as gulp.parallel will report the error without waiting for other tasks.
@stof I've been really swamped recently. Sorry about that. I will try to find some time coming up. Thanks for the ping. |
Thanks for hanging in there! I know it's hard to stay motivated when we take awhile to respond. I'm going to get this out tonight once CI finishes. |
When a failure happens in a parallel task, it is totally normal that other tasks have not reported completion, as gulp.parallel will report the error without waiting for other tasks.
Closes #203
Closes #162