uplsh580 commented on issue #55853:
URL: https://github.com/apache/airflow/issues/55853#issuecomment-3646607001

   I'm experiencing the same behavior in Airflow 3.1.4. (Official Docker `Image 
apache/airflow:3.1.4-python3.11`)
   
   I executed the exact example provided in the official documentation for 
[Cluster 
Policies](https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/cluster-policies.html),
 but the issue persists.
   
   Here is the code snippet I used:
   
   ```python
   # airflow_local_settings.py
   
   from airflow.models.taskinstance import TaskInstance
   
   def task_instance_mutation_hook(task_instance: TaskInstance):
       if task_instance.try_number >= 1:
           task_instance.queue = "retry_queue"
   ```


-- 
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