Fingashpitzzz
Fingashpitzzz

Reputation: 169

PBS job returning queue time and running time

I am creating a website which generates PBS-jobs, based on form-input from the user. I would also want to make a page where the user can see the status of a certain project. This includes things like:

While the script is running on a Linux-server, I would like PBS to return these things at the respective times while the jobs are running. Maybe qstat could be used for this, but I'm not sure...

Does anyone know a way to return these thing from PBS (or another way) and save these things into a database?

Upvotes: 2

Views: 2095

Answers (1)

dbeer
dbeer

Reputation: 7213

One option would be to use one of the API's that interfaces with TORQUE. There is the C API that is specified in pbs_ifl.h of the source. There is also a project called pbs python which wrappers the API in python.

Finally, you could grep qstat -f output for these values:

qtime = Fri Feb 14 16:00:01 2014
etime = Fri Feb 14 16:00:01 2014
start_time = Fri Feb 14 16:00:46 2014
comp_time = Fri Feb 14 16:04:08 2014
  • qtime is an abbreviation for the time the job was queued.
  • etime is an abbreviation for eligible time.
  • comp_time is an abbreviation for the time the job was completed.

Upvotes: 2

Related Questions