Vaibhav Verma
05/16/2023, 7:08 PM@workflow
def wf():
try:
output0 = t0()
except Exception:
return handle_failure(...)
return handle_success(...)
One way I can think of achieving this behavior is to move the try/catch inside t0
, and conditioning on the output. Ideally I would like to reflect in the state of the workflow execution that t0 failed.
Is there a better way to do this?Kevin Su
05/16/2023, 11:35 PMVaibhav Verma
05/17/2023, 5:43 PM