Lior Barak
10/26/2023, 9:59 AMLior Barak
10/26/2023, 10:11 AMTess Dicker
10/26/2023, 12:17 PMLior Barak
10/26/2023, 12:19 PMTess Dicker
10/26/2023, 12:44 PMLior Barak
10/26/2023, 1:07 PMReceived SIGTERM. Sending SIGINT to the Prefect agent (PID 7)...
Received SIGINT. Sending SIGINT to the Prefect agent (PID 7)...
13:05:03.823 | ERROR | prefect.infrastructure.process - Process 'russet-bandicoot' exited with status code: -15; This indicates that the process exited due to a SIGTERM signal. Typically, this is caused by manual cancellation.
13:05:03.877 | INFO | prefect.agent - Reported flow run 'da025a15-b6f5-4537-8a33-f7c3dcc9023c' as crashed: Flow run infrastructure exited with non-zero status code -15.
Agent stopped!
Aborted
looks like the on_crash hook is never calledTess Dicker
10/26/2023, 1:21 PMLior Barak
10/26/2023, 1:34 PMdef crash_test_dummy(flow: FlowSchema, flow_run: FlowRun, state: State):
print("crashed")
context = FlowRunContext.get()
logger = get_run_logger(context=context)
<http://logger.info|logger.info>("crashed - test")
Tess Dicker
10/26/2023, 1:59 PM@flow(on_crashed=[crash_test_dummy])
Tess Dicker
10/26/2023, 3:54 PMLior Barak
10/26/2023, 10:36 PMLior Barak
10/26/2023, 10:37 PM@flow(on_crashed=[crash_test_dummy])
)