Custom Query (43 matches)
Results (40 - 42 of 43)
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:
else:
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 |
|||
#37 | fixed | docdir is hardcoded in Makefile.in | bas | anonymous |
Description |
The docdir setting is hardcoded in the Makefile.in file, making it hard to change this, e.g. when you are installing this in a prefix. attached a patch that fixes this. |