Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

[QUESTION]: In Fork if one task is failing all will fail automatically. How we can avoid it. #2337

Closed
bhawani021 opened this issue Jul 1, 2021 · 4 comments
Labels

Comments

@bhawani021
Copy link

  Fork

A. D. G
B. E. H
C. F. I

JOIN -> C, F, I

Let's say task Task A, D, G are in execution and task G failed but it will show A and D also as failed.

If G failed then A, B, C should continue in execution
and D E F should also continue in execution.

@bhawani021 bhawani021 changed the title [QUESTION]: In Fork if one task if failing all will fail automatically. How we can avoid it. [QUESTION]: In Fork if one task is failing all will fail automatically. How we can avoid it. Jul 3, 2021
@kishorebanala
Copy link
Contributor

Hey @bhawani021, This is not supported today. One option is to mark all the forked tasks as optional. But, in your example above, H & I will also be executed, after G fails, if marked optional.

Another option is to put each branch in a sub workflow, and handle the failures within subworkflow, without affecting other subworkflows.

If you think Fork should handle this in a better way, please open a discussion with your ideas. Also, please ask your questions in the discussion forum. Thanks!

@bhawani021
Copy link
Author

@kishorebanala
need your help in understanding if I am putting in subworkflow like

Fork

SubWf1                |    SubWf2                |   SubWf3
(Task: A, D, G)    |   (Task: B, E, H)      |  (Task: C, F, I)

Join (SubWf1, SubWf2, SubWf3)

What if sub-workflow SubWf3 failed? will SubWf1 and SubWf2 continue to execute?

@maheshyaddanapudi
Copy link
Contributor

@kishorebanala
need your help in understanding if I am putting in subworkflow like

Fork

SubWf1                |    SubWf2                |   SubWf3
(Task: A, D, G)    |   (Task: B, E, H)      |  (Task: C, F, I)

Join (SubWf1, SubWf2, SubWf3)

What if sub-workflow SubWf3 failed? will SubWf1 and SubWf2 continue to execute?

Ideally yes.

Could you please provide a sample workflow def ? I will try replicating the issue.

@apanicker-nflx
Copy link
Collaborator

Continuing discussion in #2346

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

No branches or pull requests

4 participants