OverZealous / run-sequence

Run a series of dependent gulp tasks in order
MIT License
961 stars 56 forks source link

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

Closed janardanb closed 6 years ago

janardanb commented 6 years ago

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 commented 6 years ago

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.