How can I get qstat
to give me full job names?
I know qstat -r
gives detailed information about the task, but it\'s too much and the resource r
I am currently writing my own qstat
wrapper in order to get a clean, useful and customizable output.
Here is the github repository. The project has grown too much for the code to be pasted in this message.
It comes with an installer and should work without any problem with both Python 2.7 and 3 (the installation script makes the modifications if needed). qjobs -h
provides some help on the available options. I will write a more complete documentation in the following days on the github wiki.
I will update this message as often as possible to stick to the current state of the project. Please feel free to comment here (or on github) to ask for features/report problems.
In the near future, I will try to add a fully interactive mode to browse the job list more easily. Of course, the classic text output will be still available (it could be useful to e-mail the output, or for a quick check of the pending/running jobs).
Command qjobs
gives:
5599109 short_name r 2015-06-25 10:27:39 queue1
5599110 jobName r 2015-06-25 10:35:39 queue2
5599111 a_long_job_name qw 2015-06-25 10:40:39
5599112 foo qw 2015-06-25 10:40:39
5599113 bar qw 2015-06-25 10:40:39
5599114 baz qw 2015-06-25 10:40:39
5599115 beer qw 2015-06-25 10:40:39
tot: 7
r: 2 qw: 5
Command qjobs -o
gives:
tot: 7
r: 2 qw: 5
Command qjobs -o inek -t
gives (e
is elapsed time since start/sub time, the format is customizable using the Format Spec. Mini-Language of Python; k
is complete queue name, with domain):
5598985 SpongeBob 522:02 (21.75 days) queue1@node23.domain.fake
5598987 ping_java 521:47 (21.74 days) queue1@node39.domain.fake
5598988 run3.14 521:46 (21.74 days) queue2@node40.domain.fake
5598990 strange_job_42 521:42 (21.74 days) queue3@node36.domain.fake
5598991 coffee-maker 521:39 (21.74 days) queue2@node34.domain.fake
5598992 dumbtask 521:29 (21.73 days) queue1@node14.domain.fake
qjobs -i
gives a complete list of the available 'items'. Each of this item is available as:
-o ITEMS
);-t
(e.g. -t s
to count by state as in the two first examples);-s
, default is -s ips
meaning that the job list is sorted by ID, then by priority and finally by state before being printed.The result of qjobs -i
is:
i: job id
p: job priority
n: job name
o: job owner
s: job state
t: job start/submission time
e: elapsed time since start/submission
q: queue name without domain
d: queue domain
k: queue name with domain
r: requested queue(s)
l: number of slots used