π ezpz
: PBS Job Management¶
π€ Determine Details of Currently Active Job¶
- Find all currently running1 jobs owned by the user.
-
For each of these running jobs, build a dictionary of the form:
-
Look for our
hostname
in the list of hosts for each job. -
If found, we know we are participating in that job.
-
Once we have the
PBS_JOBID
of the job containing ourhostname
, we can find thehostfile
for that job. - The
hostfile
is located in/var/spool/pbs/aux/
. -
The filename is of the form
jobid.hostname
. -
β Done!
Example:
-
- Running: Can have multiple PBS jobs running at the same time
- Active: Can only have one active PBS job at a time
- This is the job that we are currently running on