def pbs_evaluate(command): from libtbx.queuing_system_utils.processing import polling return polling.SinglePoller( command = process_command_line( command = command, default = [ "qstat", "-f" ] ), evaluate = polling.pbs_single_evaluate, )
def lsf_evaluate(command): from libtbx.queuing_system_utils.processing import polling return polling.SinglePoller( command = process_command_line( command = command, default = [ "bjobs" ] ), evaluate = polling.lsf_single_evaluate, )
def slurm_evaluate(command): from libtbx.queuing_system_utils.processing import polling return polling.SinglePoller( command = process_command_line( command = command, default = [ "squeue", "-o", "%t", "-h", "-j" ], ), evaluate = polling.slurm_single_evaluate, )