333 |
|
newJobs = len(reportList) - len(task.jobs) |
334 |
|
if newJobs != 0: |
335 |
|
isNew=True |
336 |
< |
if not len(task.jobs):isNew=False |
336 |
> |
if len(task.jobs):isNew=False |
337 |
|
jobL=[] |
338 |
|
for i in range(1,newJobs+1): |
339 |
|
jobL.append(len(task.jobs)+i) |
410 |
|
return False |
411 |
|
return True |
412 |
|
|
413 |
+ |
# Method to update arguments w.r.t. resubmission number in order to grant unique output |
414 |
+ |
def updateResubAttribs(self, jobsL): |
415 |
+ |
task = self.getTask(jobsL) |
416 |
+ |
for j in task.jobs: |
417 |
+ |
common.bossSession.getRunningInstance(j) |
418 |
+ |
newArgs = "%d %d"%(j.runningJob['jobId'], j.runningJob['submission']) |
419 |
+ |
j['arguments'] = newArgs |
420 |
+ |
|
421 |
+ |
common.bossSession.updateDB(task) |
422 |
+ |
return |
423 |
+ |
|
424 |
|
|