RNHTTR commented on issue #36857:
URL: https://github.com/apache/airflow/issues/36857#issuecomment-1899365806

   The `random_fail` task doesn't have `depends_on_past=True`, so new DAG runs 
are able to continue.
   
   If you update the `random_fail` task as follows, it will work as expected:
   
   ```
   @task(depends_on_past=True)
   def random_fail():
       if random.random() > 0.1:
           raise ValueError("error")
   ```
   
   <img width="122" alt="image" 
src="https://github.com/apache/airflow/assets/25823361/08ab736b-ba58-41b7-be3f-edddbbb24d3f";>
   
   <img width="1076" alt="image" 
src="https://github.com/apache/airflow/assets/25823361/4b9ab7a9-bf6b-4836-bd61-9b437221cae8";>
   
   
   [depends_on_past 
docs](https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dags.html#depends-on-past)
 works for the task instance of the same task in the previously scheduled DAG 
run.
   


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

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

Reply via email to