<@ULVA73B9P> I try to run a prefect flow which h...
# marvin-in-the-wild
p
@Marvin I try to run a prefect flow which has concurrent task, the flow is in Running state but the Task is still in Pending State, what is the reason for this? The task should take a less time but it took for than an hour
m
The task being stuck in a Pending state while the flow remains Running can be caused by several issues. Here's a summary based on the documentation and GitHub issues: 1. Concurrency Limits: If you have set up global concurrency limits, it's possible that the task is waiting for a slot to become available. Refer to the global concurrency limits guide for more details. 2. Agent Issues: If the agent running the flow is interrupted or stopped, the flow may remain in the Running state while tasks are in Pending. See the GitHub issue for a similar problem where the agent process was stopped mid-execution, causing the flow to hang. 3. Flow Suspension: Ensure that your flow is not accidentally paused or suspended. Resuming a suspended flow can sometimes help move pending tasks into a running state. Check the flows guide for more information on pausing and suspending flows. For more complex scenarios involving these constraints and issues, you may need to review the broader architecture of your task queues and constraints. Here are some additional links for further reading: - A blog post discussing the complexities of task queues. - The concurrency section in the latest Prefect documentation. If you've ruled out these causes and the issue persists, you might want to look deeper into the Prefect logs or open a support request with more specifics on your flow and setup.