56 |
|
Return task with all/list of jobs |
57 |
|
""" |
58 |
|
try: |
59 |
< |
task = common.bossSession.load(1,jobsList)[0] |
59 |
> |
task = common.bossSession.load(1,jobsList) |
60 |
|
except Exception, e : |
61 |
|
common.logger.debug(3, "Error while getting task : " +str(traceback.format_exc())) |
62 |
|
raise CrabException('Error while getting task '+str(e)) |
67 |
|
Return a task with a single job |
68 |
|
""" |
69 |
|
try: |
70 |
< |
task = common.bossSession.load(1,str(n))[0] |
70 |
> |
task = common.bossSession.load(1,str(n)) |
71 |
|
except Exception, e : |
72 |
|
common.logger.debug(3, "Error while getting job : " +str(traceback.format_exc())) |
73 |
|
raise CrabException('Error while getting job '+str(e)) |