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))
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())
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))