Skip to content
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

Continue to execute task if any sequence task in between gets failed #103

Closed
janardanb opened this issue Mar 8, 2018 · 1 comment
Closed
Labels

Comments

@janardanb
Copy link

i want to continue to execute task if any sequence task in between gets failed.. i am not able to find the solution :(

t1 t2 t3 t4

i am calling this in t5
t5(t1 t2 t3 t4)

and it t3 fails t4 doesn't execute it simply stop the execution but i want to execute t4 inspite of any task which is failed.. Thanks

@OverZealous
Copy link
Owner

Run-sequence doesn't support this because gulp doesn't support this. If a task fails—any task—gulp quits, and therefore run-sequence quits.

If you want to continue after a task fails, you need to catch that error and prevent it from propagating. Since every stream is a little different, I can't help you with that.

The other alternative is to not return anything from t3 if nothing depends on it's completion, or wrap it in something to ensure you return successfully whether it completes or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants