Skip to content

Commit

Permalink
whitelist_for_serdes WorkerStatus enum (#6716)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannkm committed Feb 18, 2022
1 parent 95333ec commit 3583858
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python_modules/dagster/dagster/core/launcher/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from dagster.core.origin import PipelinePythonOrigin
from dagster.core.storage.pipeline_run import PipelineRun
from dagster.core.workspace.workspace import IWorkspace
from dagster.serdes import whitelist_for_serdes


class LaunchRunContext(NamedTuple):
Expand Down Expand Up @@ -35,6 +36,7 @@ def pipeline_code_origin(self) -> Optional[PipelinePythonOrigin]:
return self.pipeline_run.pipeline_code_origin


@whitelist_for_serdes
class WorkerStatus(Enum):
RUNNING = "RUNNING"
NOT_FOUND = "NOT_FOUND"
Expand Down

0 comments on commit 3583858

Please sign in to comment.