You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a setup where I have a Flow with a child job with a child job and so on in a sequential chain. Each job has their own retry policies (which I am not interested in on this question).
How I have understood the flows is that when a child fails, the parent stays in the state of waiting-for-children when failParentOnFailure: false and if the flag is true, then the parents get failed status.
If I explicitly fetch the failed child job and invoke its retry function and the job now succeeds, depending on the parent status waiting-for-children or failed I am able to continue the flow execution or not.
Now for the question part:
What happens to the waiting-for-children jobs if the the child never succeeds? There are the auto-removal options { removeOnComplete: true, removeOnFail: true } but this doesn't sound like either. Do I need to remove them on my own?
Is there a recommended way of moving the parent back to "runnable" after a successful retry of its child if the parent was previosly moved to failed state?
Bonus question: Is there any better way of retrying flow failed children jobs other than individually finding the failed jobs and invoking their retry?
Also, is it possible to somehow skip a failed job in a flow? Let's say I have a sequential jobs a - b - c - d and b fails and I would like c to stop waiting for it. I am aware there is job option { removeDependencyOnFailure: true } but I cannot set that before hand but instead retroactively case by case. Also, I would like for the failed job to still to be returned when requesting flow with FlowProducergetFlow
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a setup where I have a Flow with a child job with a child job and so on in a sequential chain. Each job has their own retry policies (which I am not interested in on this question).
How I have understood the flows is that when a child fails, the parent stays in the state of
waiting-for-children
whenfailParentOnFailure: false
and if the flag is true, then the parents getfailed
status.If I explicitly fetch the failed child job and invoke its
retry
function and the job now succeeds, depending on the parent statuswaiting-for-children
orfailed
I am able to continue the flow execution or not.Now for the question part:
waiting-for-children
jobs if the the child never succeeds? There are the auto-removal options{ removeOnComplete: true, removeOnFail: true }
but this doesn't sound like either. Do I need to remove them on my own?failed
state?retry
?Also, is it possible to somehow skip a failed job in a flow? Let's say I have a sequential jobs
a - b - c - d
andb
fails and I would likec
to stop waiting for it. I am aware there is job option{ removeDependencyOnFailure: true }
but I cannot set that before hand but instead retroactively case by case. Also, I would like for the failed job to still to be returned when requesting flow withFlowProducer
getFlow
Beta Was this translation helpful? Give feedback.
All reactions