394 |
|
|
395 |
|
job.runningJob['state'] = str( rForJ.getAttribute('action') ) |
396 |
|
|
397 |
< |
#if str( rForJ.getAttribute('resubmit') ).isdigit(): |
398 |
< |
# job['submissionNumber'] = int(rForJ.getAttribute('resubmit')) |
399 |
< |
# job.runningJob['submission'] = int(rForJ.getAttribute('resubmit')) |
397 |
> |
# Needed for unique naming of the output. |
398 |
> |
# GIVES PROBLEMS. FIX in >=2_7_2 |
399 |
> |
#job.runningJob['submission'] = int(rForJ.getAttribute('submission')) |
400 |
|
|
401 |
– |
# TODO cleared='0' field, how should it be handled/mapped in BL? #Fabio |
402 |
– |
|
401 |
|
common.bossSession.updateDB( task_new ) |
402 |
|
return |
403 |
|
|
408 |
|
return False |
409 |
|
return True |
410 |
|
|
411 |
+ |
# Method to update arguments w.r.t. resubmission number in order to grant unique output |
412 |
+ |
def updateResubAttribs(self, jobsL): |
413 |
+ |
task = self.getTask(jobsL) |
414 |
+ |
for j in task.jobs: |
415 |
+ |
common.bossSession.getRunningInstance(j) |
416 |
+ |
newArgs = "%d %d"%(j.runningJob['jobId'], j.runningJob['submission']) |
417 |
+ |
j['arguments'] = newArgs |
418 |
+ |
|
419 |
+ |
common.bossSession.updateDB(task) |
420 |
+ |
return |
421 |
+ |
|
422 |
|
|