hpcflow.sdk.helper.helper#

Functions

clear_helper

get_PID_file_path

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

get_helper_PID

get_helper_log_path

Get the log file path for the helper.

get_helper_logger

get_helper_uptime

get_helper_watch_list

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

get_user_data_dir

We segregate by hostname to account for the case where multiple machines might use the same shared file system.

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

run_helper

start_helper

stop_helper