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 0a5f34e8f25f1..f24082cad4709 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 @@ def get_params(cls, params: abc.MutableMapping | None) -> dict | None: 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 b4cc74ff0cd45..81f0a2acb2a8c 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 0452da45a665c..033cfa654a9d6 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 fb556c127ccde..ea0b228d78694 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; /**