From 693ac56bd3bb6f6796b0972c29f5b4198ffac542 Mon Sep 17 00:00:00 2001 From: riniangreani2 Date: Tue, 31 Mar 2026 09:58:12 +0800 Subject: [PATCH] Remove cancel_flow_run --- automation/canfar_polling.py | 1 - 1 file changed, 1 deletion(-) diff --git a/automation/canfar_polling.py b/automation/canfar_polling.py index cb759cf..9807227 100644 --- a/automation/canfar_polling.py +++ b/automation/canfar_polling.py @@ -111,7 +111,6 @@ async def _fetch_prefect_completed_flow_runs(limit: int = 200): async def _fail_flow_run(flow_run_id, reason: str) -> None: """Mark the specified flow-run as FAILED with the given reason/message.""" async with get_client() as client: - await client.cancel_flow_run(flow_run_id=flow_run_id) await client.set_flow_run_state( flow_run_id=flow_run_id, state=Failed(message=reason),