This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 87019059179 Mark DagDetailsResponse.concurrency as deprecated (#55150)
87019059179 is described below

commit 87019059179e813a6b09778f23765942e82368a1
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Mon Sep 1 20:13:05 2025 +0200

    Mark DagDetailsResponse.concurrency as deprecated (#55150)
---
 airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py        | 2 +-
 .../src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml | 1 +
 airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts         | 1 +
 airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts           | 1 +
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py 
b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py
index 0a5f34e8f25..f24082cad47 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py
+++ b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py
@@ -183,7 +183,7 @@ class DAGDetailsResponse(DAGResponse):
         return {k: v.dump() for k, v in params.items()}
 
     # Mypy issue https://github.com/python/mypy/issues/1362
-    @computed_field  # type: ignore[prop-decorator]
+    @computed_field(deprecated=True)  # type: ignore[prop-decorator]
     @property
     def concurrency(self) -> int:
         """
diff --git 
a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml
 
b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml
index b4cc74ff0cd..81f0a2acb2a 100644
--- 
a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml
+++ 
b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml
@@ -9684,6 +9684,7 @@ components:
 
 
             Deprecated: Use max_active_tasks instead.'
+          deprecated: true
           readOnly: true
         latest_dag_version:
           anyOf:
diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts 
b/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts
index 0452da45a66..033cfa654a9 100644
--- a/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts
+++ b/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts
@@ -1953,6 +1953,7 @@ export const $DAGDetailsResponse = {
             description: `Return max_active_tasks as concurrency.
 
 Deprecated: Use max_active_tasks instead.`,
+            deprecated: true,
             readOnly: true
         },
         latest_dag_version: {
diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts 
b/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts
index fb556c127cc..ea0b228d786 100644
--- a/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts
+++ b/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts
@@ -543,6 +543,7 @@ export type DAGDetailsResponse = {
      * Return max_active_tasks as concurrency.
      *
      * Deprecated: Use max_active_tasks instead.
+     * @deprecated
      */
     readonly concurrency: number;
     /**

Reply via email to