pyworkflow.utils.process module

This module handles process execution

pyworkflow.utils.process.buildRunCommand(programname, params, numberOfMpi, hostConfig=None, env=None, gpuList=None)[source]

Return a string with the command line to run

pyworkflow.utils.process.isProcessAlive(pid)[source]
pyworkflow.utils.process.killWithChilds(pid)[source]

Kill the process with given pid and all children processes.

Parameters

pid – the process id to terminate

pyworkflow.utils.process.runCommand(command, env=None, cwd=None)[source]

Execute command with given environment env and directory cwd

pyworkflow.utils.process.runJob(log, programname, params, numberOfMpi=1, numberOfThreads=1, hostConfig=None, env=None, cwd=None, gpuList=None)[source]