bumpy-television-667
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?glamorous-carpet-83516
05/16/2023, 11:35 PMglamorous-carpet-83516
05/16/2023, 11:35 PMbumpy-television-667
05/17/2023, 5:43 PM