From d9e37d2fd903173d9e0fd66d41b08bfb772c59d1 Mon Sep 17 00:00:00 2001 From: pierrejeambrun Date: Sun, 30 Apr 2023 16:33:57 +0200 Subject: [PATCH] Fix Pool schema OpenAPI spec --- airflow/api_connexion/openapi/v1.yaml | 6 +++++- airflow/www/static/js/types/api-generated.ts | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/airflow/api_connexion/openapi/v1.yaml b/airflow/api_connexion/openapi/v1.yaml index f7edbe3c139b2..c334e4a99720d 100644 --- a/airflow/api_connexion/openapi/v1.yaml +++ b/airflow/api_connexion/openapi/v1.yaml @@ -3070,7 +3070,7 @@ components: type: integer readOnly: true description: The number of slots used by running/queued tasks at the moment. - used_slots: + running_slots: type: integer readOnly: true description: The number of slots used by running tasks at the moment. @@ -3082,6 +3082,10 @@ components: type: integer readOnly: true description: The number of free slots at the moment. + scheduled_slots: + type: integer + readOnly: true + description: The number of slots used by scheduled tasks at the moment. description: type: string description: | diff --git a/airflow/www/static/js/types/api-generated.ts b/airflow/www/static/js/types/api-generated.ts index 2439b7a610537..00506e113aa03 100644 --- a/airflow/www/static/js/types/api-generated.ts +++ b/airflow/www/static/js/types/api-generated.ts @@ -1211,11 +1211,13 @@ export interface components { /** @description The number of slots used by running/queued tasks at the moment. */ occupied_slots?: number; /** @description The number of slots used by running tasks at the moment. */ - used_slots?: number; + running_slots?: number; /** @description The number of slots used by queued tasks at the moment. */ queued_slots?: number; /** @description The number of free slots at the moment. */ open_slots?: number; + /** @description The number of slots used by scheduled tasks at the moment. */ + scheduled_slots?: number; /** * @description The description of the pool. *