server.workflow_reaper.workflow_reaper
Service to monitor and reap dead workflows.
Attributes
Classes
Monitoring and reaping dead workflows. |
Module Contents
- class server.workflow_reaper.workflow_reaper.WorkflowReaper(poll_interval_seconds: int | None = None, requester: jobmon.core.requester.Requester | None = None, wf_notification_sink: Callable[Ellipsis, None] | None = None)[source]
Bases:
objectMonitoring and reaping dead workflows.
- monitor_forever() None[source]
The main part of the Worklow Reaper.
Check if workflow runs should be in ABORTED, SUSPENDED, or ERROR state. Wait and do it again.
- _get_wf_name_args(workflow_id: int) Tuple[str, str][source]
Return the workflow name and args associated with a specific workflow_id.
- _get_lost_workflow_runs(status: List[str]) List[jobmon.server.workflow_reaper.reaper_workflow_run.ReaperWorkflowRun][source]
Return all workflows that are in a specific state.
- _halted_state() str | None[source]
Check if a workflow_run needs to be transitioned to terminated state.