process_manager_interface
process_manager.process_manager_interface
Module providing functions to interact with the drunc process manager.
Classes
ProcessAction
Bases: Enum
Enum for process actions.
Functions
boot_process(user, data)
Boot a process with the given data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
user
|
str
|
the user to boot the process as. |
required |
data
|
dict[str, str | int]
|
the data for the process. |
required |
Source code in process_manager/process_manager_interface.py
get_process_logs(uuid)
Retrieve logs for a process from the process manager.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
uuid
|
str
|
UUID of the process. |
required |
Returns:
Type | Description |
---|---|
list[DecodedResponse]
|
The process logs. |
Source code in process_manager/process_manager_interface.py
get_process_manager_driver()
Get a ProcessManagerDriver instance.
Source code in process_manager/process_manager_interface.py
get_session_info()
process_call(uuids, action)
Perform an action on a process with a given UUID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
uuids
|
Iterable[str]
|
List of UUIDs of the process to be actioned. |
required |
action
|
ProcessAction
|
Action to be performed {restart,flush,kill}. |
required |