From 185573ecd895107a597fe072673a9fe66e25e5a9 Mon Sep 17 00:00:00 2001 From: vatsrahul1001 <43964496+vatsrahul1001@users.noreply.github.com> Date: Wed, 8 Jan 2025 21:05:34 +0530 Subject: [PATCH] update reset_dag_runs default value to true (#45453) --- airflow/api_fastapi/core_api/datamodels/task_instances.py | 2 +- airflow/api_fastapi/core_api/openapi/v1-generated.yaml | 2 +- airflow/ui/openapi-gen/requests/schemas.gen.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/airflow/api_fastapi/core_api/datamodels/task_instances.py b/airflow/api_fastapi/core_api/datamodels/task_instances.py index 8736f3522df7e..07a1f77ad5421 100644 --- a/airflow/api_fastapi/core_api/datamodels/task_instances.py +++ b/airflow/api_fastapi/core_api/datamodels/task_instances.py @@ -167,7 +167,7 @@ class ClearTaskInstancesBody(BaseModel): end_date: AwareDatetime | None = None only_failed: bool = True only_running: bool = False - reset_dag_runs: bool = False + reset_dag_runs: bool = True task_ids: list[str] | None = None dag_run_id: str | None = None include_upstream: bool = False diff --git a/airflow/api_fastapi/core_api/openapi/v1-generated.yaml b/airflow/api_fastapi/core_api/openapi/v1-generated.yaml index dd621c3505b9a..bb4861a5fc3c7 100644 --- a/airflow/api_fastapi/core_api/openapi/v1-generated.yaml +++ b/airflow/api_fastapi/core_api/openapi/v1-generated.yaml @@ -6582,7 +6582,7 @@ components: reset_dag_runs: type: boolean title: Reset Dag Runs - default: false + default: true task_ids: anyOf: - items: diff --git a/airflow/ui/openapi-gen/requests/schemas.gen.ts b/airflow/ui/openapi-gen/requests/schemas.gen.ts index bde712ca5a9c9..9d59d4fd59a61 100644 --- a/airflow/ui/openapi-gen/requests/schemas.gen.ts +++ b/airflow/ui/openapi-gen/requests/schemas.gen.ts @@ -539,7 +539,7 @@ export const $ClearTaskInstancesBody = { reset_dag_runs: { type: "boolean", title: "Reset Dag Runs", - default: false, + default: true, }, task_ids: { anyOf: [