Alan
10/15/2024, 5:52 PMMarvin
10/15/2024, 5:52 PMAlan
10/15/2024, 5:52 PMMarvin
10/15/2024, 5:53 PMflow_run_state
and task_run_state
to reduce the frequency of records. However, the behavior you're experiencing, especially with flows getting stuck in a "cancelling" state, might suggest some setup or infrastructure issues.
Here are some general tips that might help you in dealing with these challenges:
1. Investigate Infrastructure Issues: If a flow is stuck in the "cancelling" state, check if there are any underlying infrastructure issues. Prefect's documentation points out that cancellation might fail if infrastructure blocks are altered or removed, or if there's a scope mismatch. You can read more about this in the Flows Concepts section.
2. State Change Hooks: While state change intervals are not directly adjustable, you can use state change hooks to manage actions when flows transition between states. This could include logging or additional error handling automation. You may find more information in the State Change Hooks Guide.
3. Flow Run Management: To ensure flows do not run indefinitely, consider implementing checks at various points in your flow to assess its progress and decide if it should continue or terminate.
If the problem continues and heavily impacts your operations, consider reaching out to the Prefect community or support for more specialized assistance.Alan
10/15/2024, 5:55 PMMarvin
10/15/2024, 5:55 PM