<@ULVA73B9P> I have subflows that have a timeout a...
# marvin-in-the-wild
m
@Marvin I have subflows that have a timeout and retry parameters specified in the @flow decorator, but the flow or tasks within the flow hang. For example, I set a timeout=3600 but the flows will be stuck for 8 hours
m
It seems there's not a lot of detailed information directly addressing your issue, but there are some useful tidbits to consider. Here are the relevant excerpts from the Prefect documentation: 1. Flow Timeouts: - "Flow timeouts are used to prevent unintentional long-running flows." - Ensure you have properly set the timeout and that it applies to the part of the flow you intend. 2. Subflows: - Observability: "Subflows, like any other flow run, have first-class observability within the Prefect UI and Prefect Cloud." - You should be able to see the status and potential reasons for hanging in the Flow Runs dashboard. 3. Canceling Stuck Flows: - You can cancel a flow run by using the CLI command
prefect flow-run cancel <flow_run_id>
or through the UI. I would recommend that you: - Verify that the timeout parameter is being correctly applied and that it hasn't been overridden or misconfigured in any of your subflows. - Use the Prefect UI to observe the flow execution and identify where it might be hanging. - Ensure there are no deadlocks or resource waits that might be causing the hang. If the behavior persists despite these checks, please consider filing an issue on the Prefect GitHub repository. Let me know if there's anything more specific you'd like to explore!