Package schrodinger :: Package test :: Package stu :: Module process_management
[hide private]
[frames] | no frames]

Module process_management

Manage processes started by STU. This includes killing and printing status information.

Functions [hide private]
 
format_process_status(process)
Print a full usage/ status message about a process
 
process_status(process)
 
format_psutil_process(process)
Pretty-print a psutil.Process object.
 
format_process_tree(process, maxdepth=100)
Print the current process tree starting at process
 
_recursive_format_process_tree(process, maxdepth=100, level=0)
Recursive internal method to print the current process tree starting at process
 
kill_process_children(process, timeout=3)
Fatally wound and terminate all child subprocesses of 'process'.
 
kill_launched_jobcontrol_jobs(stu_test_id)
Kill all jobcontrol jobs launched by processes associated with a specific STU test, designated by stu_test_id.
Function Details [hide private]

kill_process_children(process, timeout=3)

 

Fatally wound and terminate all child subprocesses of 'process'. Based on https://code.google.com/p/psutil/source/browse/test/test_psutil.py#257

kill_launched_jobcontrol_jobs(stu_test_id)

 

Kill all jobcontrol jobs launched by processes associated with a specific STU test, designated by stu_test_id.

Returns:
Was at least one job killed?