hpcflow.sdk.helper.helper#

Implementation of a helper process used to monitor jobs.

Functions

clear_helper

Stop the helper or remove any stale information relating to it.

get_PID_file_path

Get the path to the file containing the process ID of the helper, if running.

get_helper_PID

Get the process ID of the helper process.

get_helper_log_path

Get the log file path for the helper.

get_helper_logger

Get the logger for helper-related messages.

get_helper_uptime

Get the amount of time that the helper has been running.

get_helper_watch_list

Get the list of workflows currently being watched by the helper process.

get_watcher_file_path

Get the path to the watcher file, which contains a list of workflows to watch.

helper_timeout

Kill the helper due to running duration exceeding the timeout.

kill_proc_tree

Kill a process tree (including grandchildren) with signal "sig" and return a (gone, still_alive) tuple.

restart_helper

Restart the helper process.

run_helper

Run the helper core.

start_helper

Start the helper process.

stop_helper

Stop the helper process.