pi_portal.modules.system.supervisor_process.SupervisorProcess
- class pi_portal.modules.system.supervisor_process.SupervisorProcess(process_name: ProcessList)[source]
Bases:
objectProcess managed by the SupervisorClient.
- Parameters:
process_name (ProcessList) – The Supervisor process name.
- __init__(process_name: ProcessList) None[source]
- is_running() bool[source]
Return whether the process is currently in a running state.
- Return type:
bool
- status_in(status: List[ProcessStatus]) bool[source]
Check if the Supervisor process is in the list of specified states.
- Parameters:
status (List[ProcessStatus]) – A list of statuses to check if the process is in.
- Returns:
A boolean indicating if the process is one of the states.
- Return type:
bool