schrodinger.test.stu.process_management module

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

schrodinger.test.stu.process_management.format_process_status(process)[source]

Print a full usage/ status message about a process

schrodinger.test.stu.process_management.process_status(process)[source]
schrodinger.test.stu.process_management.format_process_tree(process, maxdepth=100, ignore_zombies=False)[source]

Print the current process tree starting at process

schrodinger.test.stu.process_management.process_tree_lines(process, maxdepth=100, level=0, ignore_zombies=False)[source]

Recursive internal method to print the current process tree starting at process

schrodinger.test.stu.process_management.kill_process_children(process, timeout=3)[source]

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

schrodinger.test.stu.process_management.kill_launched_jobcontrol_jobs(stu_test_id: str) → str[source]

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

Returns

Descriptive messages about which jobs were cancelling. Empty str if no jobs were cancelled.