π 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
hostnamein the list of hosts for each job. -
If found, we know we are participating in that job.
-
Once we have the
PBS_JOBIDof the job containing ourhostname, we can find thehostfilefor that job. - The
hostfileis 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