executorlib.task_scheduler.file.spawner_subprocess.subprocess_terminate

executorlib.task_scheduler.file.spawner_subprocess.subprocess_terminate#

executorlib.task_scheduler.file.spawner_subprocess.subprocess_terminate(task)[source]#

Terminate a subprocess and wait for it to complete.

Parameters:

task (subprocess.Popen) – The subprocess.Popen instance to terminate