Error Management after a fork #1090
Unanswered
geomagilles
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - what happens if an error is raised on a branch of a fork, that is itself within a
try/catch
?It's a tricky situation as branches are running in parallel and more than one can be faulty.
E.g. if the choice is to always propagate the error to the
catch
, it may be weird when compete = false, because an error is raised while a branch can complete successfully. Also it could lead to multiple concurrent execution of the samecatch.do
which is problematic.To me, the "right" choice would be to consider that all fork branches are run asynchronously, and come back to the main branch when ended. So the error would be raised above fork:
Beta Was this translation helpful? Give feedback.
All reactions