easybuild.tools.job.pbs_python module¶
Interface module to TORQUE (PBS).
Authors:
- Stijn De Weirdt (Ghent University)
- Toon Willems (Ghent University)
- Kenneth Hoste (Ghent University)
-
class
easybuild.tools.job.pbs_python.PbsJob(server, script, name, env_vars=None, hours=None, cores=None, conn=None, ppn=None)¶ Bases:
objectInteraction with TORQUE
-
add_dependencies(jobs)¶ Add dependencies to this job.
Argument jobs is a sequence of PbsJob objects.
-
has_holds()¶ Return whether this job has holds or not.
-
info(types=None)¶ Return jobinfo
-
release_hold(hold_type=None)¶ Release hold on job of specified type.
-
remove()¶ Remove the job with id jobid
-
set_hold(hold_type=None)¶ Set hold on job of specified type.
-
state()¶ Return the state of the job State can be ‘not submitted’, ‘running’, ‘queued’ or ‘finished’,
-
-
class
easybuild.tools.job.pbs_python.PbsPython(*args, **kwargs)¶ Bases:
easybuild.tools.job.backend.JobBackendManage PBS server communication and create PbsJob objects.
-
REQ_VERSION= '4.1.0'¶
-
complete()¶ Complete a bulk job submission.
Release all user holds on submitted jobs, and disconnect from server.
-
connect_to_server()¶ Connect to PBS server, set and return connection.
-
disconnect_from_server()¶ Disconnect current connection.
-
init()¶ Initialise the job backend.
Connect to the PBS server & reset list of submitted jobs.
-
make_job(script, name, env_vars=None, hours=None, cores=None)¶ Create and return a PbsJob object with the given parameters.
-
ppn¶ Guess PBS’ ppn value for a full node.
-
queue(job, dependencies=frozenset())¶ Add a job to the queue.
Parameters: dependencies – jobs on which this job depends.
-