Skip to content

Commit

Permalink
Fix Pool schema OpenAPI spec (#30973)
Browse files Browse the repository at this point in the history
* Fix Pool schema OpenAPI spec

* Update OpenApi example

(cherry picked from commit 20b4789)
  • Loading branch information
pierrejeambrun authored and ephraimbuddy committed May 8, 2023
1 parent d8a115f commit 26b2733
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 10 additions & 4 deletions airflow/api_connexion/openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ info:
- Field names are in snake_case.
```json
{
"description": "string",
"name": "string",
"slots": 0,
"occupied_slots": 0,
"used_slots": 0,
"queued_slots": 0,
"open_slots": 0
"queued_slots": 0,
"running_slots": 0,
"scheduled_slots": 0,
"slots": 0,
}
```
Expand Down Expand Up @@ -3036,7 +3038,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.
Expand All @@ -3048,6 +3050,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: |
Expand Down
4 changes: 3 additions & 1 deletion airflow/www/static/js/types/api-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1183,11 +1183,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.
*
Expand Down

0 comments on commit 26b2733

Please # to comment.