You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/08 19:28:34 UTC

[GitHub] [airflow] yxiao1996 commented on issue #17487: Make gantt view to show also retries

yxiao1996 commented on issue #17487:
URL: https://github.com/apache/airflow/issues/17487#issuecomment-1374909408

   Reproduce the scenario described in this issue with a python operator which causes failed task at 50% chance
   
   ```
   @task(task_id=f"sleep_and_randomly_fail", retries=1)
   def my_sleeping_function():
       time.sleep(5)
       if random.uniform(0, 1) > 0.5:
           raise ValueError("Mock Exception.")
   ```
   
   From the DAG run results it seems to me this issue is already addressed, as in the following snapshot we can see both failed 1st run and successful 2nd run in gantt chart. Under the hood, reruns of a tasks are stored as different task instances. 
   ![Screenshot_20230108_112349](https://user-images.githubusercontent.com/27112484/211214947-15feed15-fda2-41f4-a0be-51bcd70ff5b2.png)
   
   ![Screenshot_20230108_112408](https://user-images.githubusercontent.com/27112484/211214952-57f1e6ec-adc2-422d-a4f1-a85ced688a9f.png)
   


-- 
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-unsubscribe@airflow.apache.org

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