You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cleared backfill DAG runs get stuck with "Task is in the 'None' state" #69658
I cleared all tasks from a certain date onwards to re-execute my models. However, the execution stalled on a backfill dag run. It says that Dependencies are blocking the task from being executed, but the task has no dependecies — it's the first task in the DAG!
I can confirm that nothing is running as well by looking at the pool, which has 0 slots taken despite having many tasks to be executed still.
Depends on past is true for the task in question. The backfill job did run successfully once before, but not after clearing it and the tasks before and after (tasks before were re-executed correctly and are hence green).
There are no failed tasks relating to this DAG.
What you think should happen instead?
The tasks should be executed.
Operating System
Debian GNU/Linux 12 (bookworm)
Deployment
Official Apache Airflow Helm Chart
Apache Airflow Provider(s)
cncf-kubernetes
Versions of Apache Airflow Providers
apache-airflow-providers-cncf-kubernetes==10.19.0
Official Helm Chart version
1.22.0 (latest released)
Kubernetes Version
v1.34.6+rke2r3
Helm Chart configuration
Nothing seems relevant to me. If needed I'll provide additional details
Docker Image customizations
None
Anything else?
The cluster does require a proxy to access external resources, and thus there are HTTP_PROXY, HTTPS_PROXY and NO_PROXY variables defined.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
I have several DAGs generated in a loop (over a list of countries), and all of them have the issue. I tried marking as success the backfill DAG runs, and once I do that the normal scheduled DAG runs resume the execution. However since these runs did not execute the data is not actually correct, and since the scheduled runs are missing for those days because that's when the upgrade to Airflow 3.x was performed (and the way the interval is calculated changed, resulting in a skipped run), I don't have a way to rerun my models for those dates.
I have always avoided backfill tasks before because it feels weird and doesn't seem to fit my use case. Which means I can't really tell if the issue would happen with earlier versions or not.
If I remove the depends_on_past bit it would run all the tasks out of order, and that wouldn't be correct. It also would be imply a lot of manual work, and thus is not an actual workaround. Also in the second screenshot, the tasks that aren't being executed do not depend on past.
Setting the previous singular tasks to success doesn't work because I get an error message saying that they already are in the success state.
There isn't an airflow tasks run command, so I'm not sure what you mean?
How many schedulers are running in your deployment and the active running dagruns could cause this. Please also check and increase the value of max_dagruns_per_loop_to_schedule as required to see if it helps.
Indeed the issue is indeed the number of schedulers + max_dagruns_per_loop_to_schedule. It's a bit strange that darguns that cannot be executed currently hold a slot in the scheduler, IMO, especially when there is depends_on_past involved.
Maybe there's technical reasons I cannot see, but I would expect the dag runs with an older date would be queued before dag runs with a newer one.
I believe backfills are always queued after scheduled runs and that's why if the pool fills up they are left starved for resources?
Activity
boring-cyborg commentedon Jul 9, 2026
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Kjir commentedon Jul 9, 2026
I have several DAGs generated in a loop (over a list of countries), and all of them have the issue. I tried marking as success the backfill DAG runs, and once I do that the normal scheduled DAG runs resume the execution. However since these runs did not execute the data is not actually correct, and since the scheduled runs are missing for those days because that's when the upgrade to Airflow 3.x was performed (and the way the interval is calculated changed, resulting in a skipped run), I don't have a way to rerun my models for those dates.
Kjir commentedon Jul 9, 2026
Even weirder: some DAGs (always same configuration, different countries) have had some task instances run, but then they got stuck:
prayaagmahajan commentedon Jul 9, 2026
Is there any fix for it, I am also facing a similar kind of issue!
Kjir commentedon Jul 9, 2026
I have always avoided backfill tasks before because it feels weird and doesn't seem to fit my use case. Which means I can't really tell if the issue would happen with earlier versions or not.
If I remove the
depends_on_pastbit it would run all the tasks out of order, and that wouldn't be correct. It also would be imply a lot of manual work, and thus is not an actual workaround. Also in the second screenshot, the tasks that aren't being executed do not depend on past.Setting the previous singular tasks to success doesn't work because I get an error message saying that they already are in the success state.
There isn't an
airflow tasks runcommand, so I'm not sure what you mean?tirkarthi commentedon Jul 10, 2026
Related
#49508
#58554
How many schedulers are running in your deployment and the active running dagruns could cause this. Please also check and increase the value of max_dagruns_per_loop_to_schedule as required to see if it helps.
Kjir commentedon Jul 10, 2026
Indeed the issue is indeed the number of schedulers +
max_dagruns_per_loop_to_schedule. It's a bit strange that darguns that cannot be executed currently hold a slot in the scheduler, IMO, especially when there isdepends_on_pastinvolved.Maybe there's technical reasons I cannot see, but I would expect the dag runs with an older date would be queued before dag runs with a newer one.
I believe backfills are always queued after scheduled runs and that's why if the pool fills up they are left starved for resources?