Accessing queue name for a submitted job

15 views
Skip to first unread message

Jeremy Cohen

unread,
Jul 15, 2016, 11:43:18 AM7/15/16
to saga-users
Is it possible to access the queue name of a PBS job submitted via saga-python?

I know it is possible to set the queue property on a saga.job.Description object prior to calling job.run() on a saga.job.Job object in order to specify that the job goes to a specific queue. However, if I submit a job without specifying the queue and allow PBS to route the job to a queue, is there some way I can access the name of the queue that the job is sent to? It looks like the queue value is not currently being parsed from the qstat output and set on the job description object after run() has been called on the job. Would this be an option or is there some other way to access this property?

Many thanks,
Jeremy

Mark Santcroos

unread,
Jul 16, 2016, 6:23:33 AM7/16/16
to saga-...@googlegroups.com
Hi Jeremy,

> On 15 Jul 2016, at 17:43 , Jeremy Cohen <jeremy...@imperial.ac.uk> wrote:
>
> Is it possible to access the queue name of a PBS job submitted via saga-python?

In principe I think it should be possible.

> I know it is possible to set the queue property on a saga.job.Description object prior to calling job.run() on a saga.job.Job object in order to specify that the job goes to a specific queue. However, if I submit a job without specifying the queue and allow PBS to route the job to a queue, is there some way I can access the name of the queue that the job is sent to? It looks like the queue value is not currently being parsed from the qstat output and set on the job description object after run() has been called on the job. Would this be an option or is there some other way to access this property?

Is the queue name shown during job submission? If so, we could extract it in a similar spirit as the job id.
Alternatively we could get it from qstat as you describe.

Mark

Jeremy Cohen

unread,
Jul 16, 2016, 3:44:27 PM7/16/16
to saga-...@googlegroups.com
Hi Mark,
I believe the queue name is shown only in the qstat output. I don't believe its available when the job is submitted. I'm having a look at updating the PBS job adapter to get the queue from the qstat output along with the other parameters that it extracts from there. I'll create a pull request when I have something available.

Thanks,
Jeremy
Reply all
Reply to author
Forward
0 new messages