@@ -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" ]:
0 commit comments