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

Task #9607: fix for MoM bug introduced before NV's holiday

parent 5f353d10
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,18 @@ class ResourceAssigner():
except Exception as e:
logger.error(e)
try:
# fix for MoM bug introduced before NV's holiday
# MoM sets ProcessingCluster.clusterName to CEP2 even when inputxml says CEP4
# so, override it here if needed, and update to otdb
processingClusterName = mainParset.getString('Observation.Cluster.ProcessingCluster.clusterName', '')
if processingClusterName != clusterName:
logger.info('overwriting and uploading processingClusterName to otdb from %s to %s for otdb_id=%s',
processingClusterName, clusterName, otdb_id)
self.otdbrpc.taskSetSpecification(otdb_id, { 'LOFAR.ObsSW.Observation.Cluster.ProcessingCluster.clusterName': clusterName })
except Exception as e:
logger.error(e)
# insert new task and specification in the radb
# any existing specification and task with same otdb_id will be deleted automatically
logger.info('doAssignment: insertSpecification momId=%s, otdb_id=%s, status=%s, taskType=%s, startTime=%s, endTime=%s cluster=%s' %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment