laborchestrator.gui.manual_execution module

Fully AI generated module that enables call of execute_process_step() of the worker on an individual process step in the workflow regardles of the processes state (it is forbidden while process is running) or the schedule. It does not eecute process_step_finished nor change the state of the process or process step. Its meant to enable testing individual steps through the worker without running full workflows or creating minimal ones.

class laborchestrator.gui.manual_execution._DeviceOption[source]

Bases: TypedDict

label: str
value: str
class laborchestrator.gui.manual_execution._ManualExecutionRequest[source]

Bases: TypedDict

device: str | None
device_options: List[_DeviceOption]
requires_device_choice: bool
step_id: str
class laborchestrator.gui.manual_execution._StepState(status: 'StepStatus', start: 'Optional[datetime]', finish: 'Optional[datetime]', result: 'object', duration: 'float')[source]

Bases: object

duration: float
finish: datetime | None
classmethod from_step(step: ProcessStep) _StepState[source]
restore(step: ProcessStep) None[source]
result: object
start: datetime | None
status: StepStatus
laborchestrator.gui.manual_execution._build_request(orchestrator: Orchestrator, step_id: str | None) Tuple[_ManualExecutionRequest | None, str | None][source]
laborchestrator.gui.manual_execution._clean_device_name(device: object) str | None[source]
laborchestrator.gui.manual_execution._closed_outputs(info_text: object) Tuple[object, ...][source]
laborchestrator.gui.manual_execution._confirm_execution(dash_app: SMDashApp, pending: _ManualExecutionRequest | None, selected_device: str | None) CallbackReturn[source]
laborchestrator.gui.manual_execution._device_options(orchestrator: Orchestrator, step: ProcessStep) List[_DeviceOption][source]
laborchestrator.gui.manual_execution._device_type_name(device_type: object) str[source]
laborchestrator.gui.manual_execution._execute_immediately(orchestrator: Orchestrator, step_id: str, device: str) str | None[source]
laborchestrator.gui.manual_execution._modal_style(visible: bool) Dict[str, str | int | float | bool | None][source]
laborchestrator.gui.manual_execution._open_confirmation(dash_app: SMDashApp, selected_node: str | None) CallbackReturn[source]
laborchestrator.gui.manual_execution._process_state(process: SMProcess) ProcessExecutionState[source]
laborchestrator.gui.manual_execution._same_device_type(config_type: object, step_type: str) bool[source]
laborchestrator.gui.manual_execution._triggered_id() str | None[source]
laborchestrator.gui.manual_execution._wait_for_manual_execution(orchestrator: Orchestrator, step_id: str, observable: Observable, step_state: _StepState, process: SMProcess, process_state: ProcessExecutionState) None[source]
laborchestrator.gui.manual_execution.create_manual_execution_controls() Component[source]
laborchestrator.gui.manual_execution.register_manual_execution_callbacks(app: DashProxy, dash_app: SMDashApp) None[source]