Ilya Galperin
08/29/2022, 3:55 PM@flow(name="always-fail")
def entrypoint():
raise ValueError("my error message")
if __name__ == "__main__":
state = entrypoint(return_state=True)
print(state)
print(state.result)
In this scenario, state.result
can give us the detailed error message for passing back into Slack which seems really useful. However, it’d also be great if we can also provide a direct link to the flow using the flow’s run id. How are other folks implementing this, and is there a way to directly access the flow’s run id after calling the flow from main (or otherwise)?Zanie
08/29/2022, 4:03 PMstate.state_details.flow_run_id
Ilya Galperin
08/29/2022, 4:04 PMZanie
08/29/2022, 4:26 PMIlya Galperin
08/29/2022, 4:29 PM