Detection Process¶
- File location:
Bundled implementation:
source/server/python/process.py
Cluster implementation:
cluster/daemon/python/process.py
- process.make_env(info: INFO)¶
Generate a dictionary of environment variables based on request information.
- process.init(info: INFO)¶
Run the initialisation commands of detection information.
- Parameters:
info (INFO) – Detection request information.
- Returns:
Exit code (
const.EXIT_SUCCESS
orconst.EXIT_FAILURE
).- Return type:
- process.run(command: str | List[str], info: INFO, file: str = 'unknown')¶
Run command with provided settings.
- Parameters:
- Returns:
Exit code (
const.EXIT_SUCCESS
orconst.EXIT_FAILURE
).- Return type: