Custom Query (43 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (19 - 21 of 43)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#33 fixed PBSQuery.PBSError: Attribute key error: __nonzero__ bas anonymous
Description

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

else:

#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 PBSQuery.py line 331: no error handling. error 15021 not trapped bas anonymous
Description

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 4.1.5.1) torque works fine. defined queues are: halfday, week, month

#2 fixed pbs_stat.py and others use undefined pbs_geterrmsg bas pk@…
Description

Hello,

with libtorque 2.1.1, pbs-python 2.9.2, ganglia-pbs 0.9.13 under debian/sarge. If I run pbs_stat.py:

processors = 0
/usr/bin/gmetric -npbs-state -v"P=0" -tstring -x15
Traceback (most recent call last):
  File "bin/pbs_stat.py.orig", line 495, in ?
    a.check_args(sys.argv)
  File "bin/pbs_stat.py.orig", line 483, in check_args
    self.once()
  File "bin/pbs_stat.py.orig", line 416, in once
    self.get()
  File "bin/pbs_stat.py.orig", line 266, in get
    self.error(pbs.pbs_geterrmsg(self.c))
AttributeError: 'module' object has no attribute 'pbs_geterrmsg'

this error is also found if you run "rack_pbsmon.py --help".

Best,

Peter

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