From f4c4519f89fcfacf9ef3494f820e4138a2ec3d05 Mon Sep 17 00:00:00 2001 From: Pankaj Singh <98807258+pankajastro@users.noreply.github.com> Date: Sat, 25 May 2024 21:04:57 +0530 Subject: [PATCH] Add max_consecutive_failed_dag_runs in API spec (#39830) --- airflow/api_connexion/openapi/v1.yaml | 8 ++++++++ airflow/www/static/js/types/api-generated.ts | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/airflow/api_connexion/openapi/v1.yaml b/airflow/api_connexion/openapi/v1.yaml index 4e25341ace491..3efff1ebf5c71 100644 --- a/airflow/api_connexion/openapi/v1.yaml +++ b/airflow/api_connexion/openapi/v1.yaml @@ -3123,6 +3123,14 @@ components: Earliest time at which this ``next_dagrun`` can be created. *New in version 2.3.0* + max_consecutive_failed_dag_runs: + type: integer + nullable: true + readOnly: true + description: | + (experimental) The maximum number of consecutive DAG failures before DAG is automatically paused. + + *New in version 2.9.0* DAGCollection: description: | diff --git a/airflow/www/static/js/types/api-generated.ts b/airflow/www/static/js/types/api-generated.ts index c6cc5daddd716..ff65443fe726c 100644 --- a/airflow/www/static/js/types/api-generated.ts +++ b/airflow/www/static/js/types/api-generated.ts @@ -1116,6 +1116,12 @@ export interface components { * *New in version 2.3.0* */ next_dagrun_create_after?: string | null; + /** + * @description (experimental) The maximum number of consecutive DAG failures before DAG is automatically paused. + * + * *New in version 2.9.0* + */ + max_consecutive_failed_dag_runs?: number | null; }; /** * @description Collection of DAGs.