Replies: 7 comments
-
Did this just happen once or does it happen intermittently? Frequently? |
Beta Was this translation helpful? Give feedback.
-
Anecdotally, I've personally seen it happen at least three times in 2 weeks. I don't have any other detailed analysis of the actual frequency. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author. |
Beta Was this translation helpful? Give feedback.
-
I think that I'm having the same issue here: Celery Executor There was a task that was stuck in a queued state. The scheduler logs state that the task was first queued at 12:55. At this point it's assigned an
At this point, the task is queued and has that From here, the task is cleared from the UI since it was appearing stuck in queued for a long period of time, however when the task was cleared and it tried to re-queue the logs showed that the task was in a running state.
This repeats a few times until the task finally runs. The task finally runs around 13:28 (~30 minutes from when it was first queued). During that time, a new worker was spawned (KEDA and cluster-autoscaler) and the task finally runs. Let me know if you have further questions! |
Beta Was this translation helpful? Give feedback.
-
Until this can be reproduced, I'm going to convert this to a discussion. Once someone has a reliable reproduction, it can be converted back to an Issue. |
Beta Was this translation helpful? Give feedback.
-
I am observing the same on a LocalExecutor on On the first task execution, on the frontend the task is stuck in 'queued', while on the scheduler:
When i try clearing it manually, logs show similarly a
Much later, I saw the follow up task (
So, somehow it looks like the task started running at |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
Other Airflow 2 version (please specify below)
What happened
Task set to run in celery queue was queued but never started on the worker.
Stuck in state PENDING even if celery queue had spare capacity.
At this point, if i introspect the Celery queue, it does not contain any item called 5502f29e-4f17-40e3-b91e-519c3fb4606b
After clicking on Clear task in Airflow UI, scheduler continues failing to schedule the task like follows:
I tried Clear Task twice and it gave exactly the same result as above again.
At this point, restart airflow-scheduler.
Now it works. Notice new external_id was given, 7f00daa5-1ff9-48d9-9d3d-dacf871c27d6, which i can observe in the celery queue.
What you think should happen instead
How to reproduce
Dunno :(
Operating System
Debian GNU/Linux 11 (bullseye)
Versions of Apache Airflow Providers
apache-airflow==2.7.1
apache-airflow-client==2.1.0
apache-airflow-providers-celery==3.3.3
apache-airflow-providers-cncf-kubernetes==7.5.0
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions