Exemplo n.º 1
0
def __requeue_suspended_jobs_slurm():
    (out, err) = squeue(" -u {} -l -h -t {} -o %i".format(get_username(), "PD"))
    job_list = [out.splitlines()]
    scontrol("requeue " + " ".join(job_list))
Exemplo n.º 2
0
def __existing_jobs_slurm():
    # Return the job names of the Pending or Running jobs for this user
    (out, err) = squeue(" -h -o %j -u {}".format(get_username()))
    return (out.splitlines())
Exemplo n.º 3
0
def __cancel_running_jobs_slurm():
    (out, err) = squeue(" -u {} -l -h -t {} -o %i".format(get_username(), "R"))
    job_list = [out.splitlines()]
    scancel(" ".join(job_list))