Skip to content

Commit c177512

Browse files
open api specs
1 parent 254ed05 commit c177512

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

packages/models-library/src/models_library/projects_state.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,24 @@ class RunningState(str, Enum):
2424
SEE StateType for task state
2525
"""
2626

27-
UNKNOWN = "UNKNOWN" # Error state, disapeared from the system (dask backend lost the task and we do not know what is the state)
28-
NOT_STARTED = "NOT_STARTED" # Default when project is created
27+
UNKNOWN = "UNKNOWN" # Error state: the task disappeared from the system (Dask backend lost the task and its state is unknown)
28+
NOT_STARTED = "NOT_STARTED" # Default state when the project is created
2929

3030
PUBLISHED = (
31-
"PUBLISHED" # project is awainting for the compu schedule to pick the task
31+
"PUBLISHED" # The project is awaiting the compute scheduler to pick up the task
3232
)
33-
PENDING = "PENDING" # Comp scheduler takes over, and the task is waiting for a worker to pick it up
3433

35-
WAITING_FOR_CLUSTER = "WAITING_FOR_CLUSTER" # There are no clusters available to run the task, waiting for one to become available
36-
WAITING_FOR_RESOURCES = "WAITING_FOR_RESOURCES" # There is no worker available to run the task, waiting for one to become available
34+
PENDING = "PENDING" # The compute scheduler has taken over, and the task is waiting for a worker to pick it up
35+
36+
WAITING_FOR_CLUSTER = "WAITING_FOR_CLUSTER" # No cluster is available to run the task; waiting for one to become available
37+
WAITING_FOR_RESOURCES = "WAITING_FOR_RESOURCES" # No worker is available to run the task; waiting for one to become available
3738
# PENDING -> WAITING_FOR_CLUSTER -> PENDING -> WAITING_FOR_RESOURCES -> PENDING -> STARTED
3839

39-
STARTED = "STARTED" # Worker took the task and is executing it
40+
STARTED = "STARTED" # A worker has picked up the task and is executing it
4041

41-
SUCCESS = "SUCCESS" # Finished
42-
FAILED = "FAILED" # Finished
43-
ABORTED = "ABORTED" # Finished
42+
SUCCESS = "SUCCESS" # Task finished successfully
43+
FAILED = "FAILED" # Task finished with an error
44+
ABORTED = "ABORTED" # Task was aborted before completion
4445

4546
@staticmethod
4647
def list_running_states() -> list["RunningState"]:

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,6 +2798,13 @@ paths:
27982798
type: integer
27992799
default: 0
28002800
title: Offset
2801+
- name: filter_only_running
2802+
in: query
2803+
required: false
2804+
schema:
2805+
type: boolean
2806+
default: false
2807+
title: Filter Only Running
28012808
- name: filter_by_root_project_id
28022809
in: query
28032810
required: false

0 commit comments

Comments
 (0)