tirkarthi opened a new pull request, #47828:
URL: https://github.com/apache/airflow/pull/47828

   During initial page load if there is a try number selected then the log for 
the try number is displayed but the selected dropdown value is always the final 
try number which is not correct. With this change when there is a try number in 
the query param then the dropdown uses that value as default instead of the 
final value. This is already correct in try number selector as button and the 
fix needs to be present only for  dropdown.
   
   1. Run the below dag.
   2. Go to the  `retry_more_than_10` task instance and select a try number,
   3. Copy the URL and paste it in a different tab. Ensure the value in query 
parameter is same as the value in dropdown.
   
   ```python
   from __future__ import annotations
   
   from datetime import datetime, timedelta
   
   from airflow import DAG
   from airflow.decorators import task
   
   with DAG(
       dag_id="retry_issue_dag",
       start_date=datetime(2023, 10, 10),
       catchup=False,
       schedule="@once",
   ) as dag:
   
       @task(retries=8, retry_delay=timedelta(seconds=1))
       def retry_less_than_10():
           raise Exception("fail")
   
       @task(retries=40, retry_delay=timedelta(seconds=1))
       def retry_more_than_10():
           raise Exception("fail")
   
       retry_less_than_10()
       retry_more_than_10()
   ```


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