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

Task #8887: only propagate CEP4 otdb updated start/endtimes

parent c51220e1
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,14 @@ class OTDBtoRATaskStatusPropagator(OTDBBusListener):
try:
radb_task = self.radb.getTask(otdb_id=treeId)
if radb_task:
# all CEP4 tasks have storage claim(s)
# and we do not want OTDB to update our RA scheduled tasks
# so check if we have storage claims
claims = self.radb.getResourceClaims(task_ids=radb_task['id'], resource_type='storage')
if not claims:
#this is a CEP2 task, modified by the old scheduler
#update start/stop time
spec = self.otdb.taskGetSpecification(otdb_id=treeId)['specification']
new_startime = spec['ObsSW.Observation.startTime']
new_endtime = spec['ObsSW.Observation.stopTime']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment