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

   Use dropdown instead of button to select log attempt when there are more 
than 10 retries.
   
   Less than 10 retries
   
   
![image](https://github.com/apache/airflow/assets/3972343/8242f9d3-fe58-46e4-b82d-cf1d97f7dac3)
   
   More than 10 retries
   
   
![image](https://github.com/apache/airflow/assets/3972343/12a98a00-a84d-4b8c-99e2-0c42ad596fee)
   
   
   closes: #35889
   related: #35889 
   
   Sample dag :
   
   ```python
   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_interval="@once",
   ) as dag:
   
       @task(retries=8, retry_delay=timedelta(seconds=1))
       def retry_less_than_10():
           raise Exception("fail")
   
       @task(retries=15, 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