Custom Query (43 matches)


Show under each result:

Results (4 - 6 of 43)

1 2 3 4 5 6 7 8 9 10 11 12
Ticket Resolution Summary Owner Reporter
#28 fixed Torque 2.5.x compatibility (missing attributes) bas anonymous


I'd like to report that pbs_python v4.3.0 is not fully compatibile with Torque 2.5.x. For what I can see some attributes are not accounted for so an update is in order. I don't know what the situation is with Torque 3.0.x, as we don't use it for now.

For sure the missing attributes are (these are the ones i stumbled upon):

  • ATTR_init_work_dir
  • ATTR_P

Of course the complete reference you may find running diff on pbs_ifl.h from Torque sources.

Anyway, thanks for making Torque play nice with python!

Łukasz Czuja

#33 fixed PBSQuery.PBSError: Attribute key error: __nonzero__ bas anonymous

I've been playing around with PBSQuery for a few minutes; please let me know if I'm missing something obvious.

PBSQuery.getjob() returns and empty dictionary if the job is not found, and returns some other object that can be used like a dictionary if the job is found.

What I would like to do is something like this:

status = pbsq.getjob(id) if status:

#do something


#job not in queue

however, if the job is found this will fail:

PBSQuery.PBSError: Attribute key error: nonzero

if the job is not found, this code is fine because a dict implements nonzero(self)

#35 fixed line 331: no error handling. error 15021 not trapped bas anonymous

after digging a bug in jobmond (jobmonarch project), I found that at line 331, there is no error handling, and I get an empty job list whitout knowing that there is an error (which I don't understand).

self._connect is successfull (self.con = 1 which is >= 0) jobs = pbs_pbs_statjob(1, , 'NULL', 'NULL') returns [] pbs.get_error() returns 15021

I've checked torque logs with no obvious errors (V torque works fine. defined queues are: halfday, week, month

1 2 3 4 5 6 7 8 9 10 11 12
Note: See TracQuery for help on using queries.