Andreas Nigg
11/29/2022, 8:19 AMJavier Ruere
11/29/2022, 9:25 AMAndreas Nigg
11/29/2022, 10:01 AMJavier Ruere
11/29/2022, 10:04 AMStéphan Taljaard
12/05/2022, 5:12 AMProcess
infraAnna Geller
12/05/2022, 8:30 AMAny ideas what I can do to debug this issue?Runs stuck in a Pending state usually indicate an issue with the agent. You could increase resource allocation to your agent e.g. more memory or you could decrease (default should be 5 sec, you could make it 30 sec to poll less frequently and free up agent resources):
prefect config set PREFECT_AGENT_QUERY_INTERVAL='30.0'
also checking the logs
if that doesn't help, can you open a GitHub issue with more details about your setup? thanks a lotis there a setting to stop flow runs if they are pending for too long?we are working on SLA feature that will allow you to cancel such flow run if it runs or is stuck in pending for longer than X and reschedule it (trigger a new run), not released yet but 🔜
Andreas Nigg
12/05/2022, 8:45 AMAnna Geller
12/05/2022, 10:16 AMWhy is an under-resourced agent causing flow runs stuck in pending?because it has no capacity to poll for new runs and deploy those to the infra and the runs get picked up by the agent but the agent is "too busy" to actually create infra for them because it keeps switching tasks, and those runs stay in Pending and keep waiting until the agent "get to it" to deploy the run to the infra - that's my understanding, could be wrong
Stéphan Taljaard
12/05/2022, 11:10 AMx
) such that if after x
time has passed and a flow is still "Pending", it gets revived and reranAnna Geller
12/05/2022, 12:41 PM