hussein-awala commented on code in PR #30267:
URL: https://github.com/apache/airflow/pull/30267#discussion_r1148689589


##########
airflow/models/taskinstance.py:
##########
@@ -214,7 +214,8 @@ def clear_task_instances(
             task_id = ti.task_id
             if dag and dag.has_task(task_id):
                 task = dag.get_task(task_id)
-                ti.refresh_from_task(task)
+                # Preserve original assigned queue when clearing a task
+                ti.refresh_from_task(task, queue_override=task.queue)

Review Comment:
   A stupid question, what is the difference between extracting `queue` from 
task then sending it to `refresh_from_task` to use it as queue, and extracting 
it from the same task in the method `refresh_from_task`? I don't see how this 
can preserve queue on task clear :thinking: 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to