Skip to content

prefect.server.schemas.statuses

DeploymentStatus

Bases: AutoEnum

Enumeration of deployment statuses.

Source code in src/prefect/server/schemas/statuses.py
22
23
24
25
26
27
28
29
class DeploymentStatus(AutoEnum):
    """Enumeration of deployment statuses."""

    READY = AutoEnum.auto()
    NOT_READY = AutoEnum.auto()

    def in_kebab_case(self) -> str:
        return self.value.lower().replace("_", "-")

WorkPoolStatus

Bases: AutoEnum

Enumeration of work pool statuses.

Source code in src/prefect/server/schemas/statuses.py
 4
 5
 6
 7
 8
 9
10
11
12
class WorkPoolStatus(AutoEnum):
    """Enumeration of work pool statuses."""

    READY = AutoEnum.auto()
    NOT_READY = AutoEnum.auto()
    PAUSED = AutoEnum.auto()

    def in_kebab_case(self) -> str:
        return self.value.lower().replace("_", "-")

WorkQueueStatus

Bases: AutoEnum

Enumeration of work queue statuses.

Source code in src/prefect/server/schemas/statuses.py
32
33
34
35
36
37
38
39
40
class WorkQueueStatus(AutoEnum):
    """Enumeration of work queue statuses."""

    READY = AutoEnum.auto()
    NOT_READY = AutoEnum.auto()
    PAUSED = AutoEnum.auto()

    def in_kebab_case(self) -> str:
        return self.value.lower().replace("_", "-")

WorkerStatus

Bases: AutoEnum

Enumeration of worker statuses.

Source code in src/prefect/server/schemas/statuses.py
15
16
17
18
19
class WorkerStatus(AutoEnum):
    """Enumeration of worker statuses."""

    ONLINE = AutoEnum.auto()
    OFFLINE = AutoEnum.auto()