Skip to content

Commit

Permalink
Fixed updating task information after submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentina Mancinelli committed Apr 25, 2016
1 parent 07419ee commit a90e8eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/CRABTools/CRABBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ def master_submit(self, rjobs, subjobconfigs, masterjobconfig):
try:
statusresult = crabCommand('submit', config = job_config, proxy = '/data/hc/apps/cms/config/x509up_production2')
logger.info("CRAB3 Status result: %s" % statusresult)
job.backend.requestname = res['requestname']
job.backend.taskname = res['uniquerequestname']
job.updateStatus('submitted')

except httplib.HTTPException as e:
logger.error(e.result)

Expand Down Expand Up @@ -270,7 +274,7 @@ def updateSubjobStatus(self, jobstatus):
elif state == 'killed':
if job.status in ['submitting']:
job.updateStatus('submitted')
elif job.status not in ['killed']:
elif job.status not in ['killed']:
job.updateStatus('killed')

elif state=='finished':
Expand Down

0 comments on commit a90e8eb

Please sign in to comment.