Skip to content
Snippets Groups Projects
Commit 58b3a8a4 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #10339: try/catch reading job parts

parent d6368262
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,11 @@ def parseJobXml(job_xml): ...@@ -85,8 +85,11 @@ def parseJobXml(job_xml):
#try to extract a job_group_id #try to extract a job_group_id
job_dict['job_group_id'] = 'unknown_group' job_dict['job_group_id'] = 'unknown_group'
try:
if 'ExportID' in job_dict: if 'ExportID' in job_dict:
job_dict['job_group_id'] = int(job_dict['ExportID'].split('_')[1]) job_dict['job_group_id'] = job_dict['ExportID'].split('_')[1]
except:
pass
if 'IngestGroupId' in job_dict: if 'IngestGroupId' in job_dict:
job_dict['job_group_id'] = job_dict['IngestGroupId'] job_dict['job_group_id'] = job_dict['IngestGroupId']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment