-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Exit with code 1 when got errored tasks #89
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
Conversation
Only after all tasks are done. Closes #88
|
Isn't this already happening? If a task errors and nobody is handling it then it gets thrown and node will exit with 1 right |
|
No, it doesn't. :( |
Exit with code 1 when got errored tasks
|
Regressed. /ping @phated to be tackled during rewrite. |
|
Ugly workaround: function fixExitStatus(gulp) {
var exitStatus = 0;
gulp.on('err', function () {
exitStatus = 1;
});
process.on('exit', function (status) {
if (status < exitStatus) {
process.exit(exitStatus);
}
});
}Usage: |
|
This is a side effect of |
|
I grant we passed on https://github.com/orchestrator/orchestrator/tree/develop, but this is solved there, and https://github.com/orchestrator/orchestrator/tree/blaine isn't done yet. For most users, they'll never see gulp.run or gulp.start or runParallel or series, so swapping this in now and swapping bach in later shouldn't be too traumatic. |
|
@robrich Can you provide a list of what APIs changed between the version gulp is on now vs. your current? If it doesn't break anything I'm all for using it as a stopgap until the next one |
|
@contra: the develop branch's API is completely additive with two exceptions: each orchestration is now separate so robrich/orchestrator#15 now works the way you'd expect: it calls the callback after each Here's other interesting facts comparing orchestrator's develop with master:
|
|
@robrich based on the way gulp is working, the orchestrator change would be breaking. The other things that you mention could be reverted, should be as those are available to end users since gulp is an instance of orchestrator. |
|
Fixed in 3.8.4 |
Only after all tasks are done. Closes #88