potiuk commented on issue #42894:
URL: https://github.com/apache/airflow/issues/42894#issuecomment-2409029853

   > -> IMPORTANT: The DAG Run existed prior to the addition of the 
queue="heavy" to the dag's task. And the Task state was cleared in order to 
restart the task.
   
   
   That's the reason. Past dag-run queues cannot be changed after dag_run and 
specifically "task instance" object entry gets created.
   
   See 
https://airflow.apache.org/docs/apache-airflow/stable/database-erd-ref.html - 
the task_instance model contains "queue" so once task instance has the queue 
set there, re-running the same task instance will use what is there. 
   
   You could likely modify it manually, but currently there is no way - I think 
to modify it from UI - other than running backfill (@dstandish ?) which I think 
should do what you want.
   
   Which could be possibly a good idea to change in Airlfow 3. There are 
similar discussions happening about other features of backfill and pool 
behaviours at the devlist that might get improved in Airflow 3 -  
https://lists.apache.org/thread/zbm6tvlcz62nc9hl1mzrzz9t4bcrjngc , 
https://lists.apache.org/thread/jmj842wsw78clk9twdrz1t71ogsbk10s and others - 
so if you think it's a good idea to introduce such feature, feel free to start 
a new thread at the devlist.
   
   Converting it into a discussion in case more discussion here is needed, but 
I encourage you to continue at the devlist.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to