Thomas Opsomer
07/13/2021, 2:41 PMPod prefect-job-9f127532-nnd2f failed.
Container 'flow' state: terminated
Exit Code:: 1
Reason: Error
No heartbeat detected from the remote task; marking the run as failed.
But when I look at the pod logs, I can see the real error.
In addition to that, we have no slack notification when the flow fails like that.
Any idea how to overcome this ?Kevin Kho
Thomas Opsomer
07/13/2021, 2:48 PMKevin Kho
Thomas Opsomer
07/13/2021, 2:52 PMslack_notifier
state handler should already send failed notificationKevin Kho
Thomas Opsomer
07/13/2021, 3:13 PMfrom prefect.utilities.notifications import slack_notifier
with Flow(
name=f"flow-{username}",
state_handlers=[set_flow_run_name, slack_notifier],
storage=GCS(bucket),
schedule=schedule, run_config=get_k8s_flow_run_config(),
) as flow:
#
# ...
Kevin Kho
Thomas Opsomer
07/13/2021, 3:26 PMZanie
0.15.0
that is resolved in 0.15.1
Thomas Opsomer
07/15/2021, 9:39 AMtrigger=manual_only
Kevin Kho