Fix false positive reporting of sync tasks on errors#204
Fix false positive reporting of sync tasks on errors#204phated merged 1 commit intogulpjs:masterfrom
Conversation
| } | ||
|
|
||
| function errorFunction() { | ||
| throw new Error('Error!'); |
There was a problem hiding this comment.
you're not completing this task, cb(new Error('Error!')).
There was a problem hiding this comment.
This should be fine, the domains will catch it.
There was a problem hiding this comment.
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.
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