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

Task #9859: automatically reschedule all scheduled successor tasks

parent ad8294c7
No related branches found
No related tags found
No related merge requests found
...@@ -333,6 +333,12 @@ class ResourceAssigner(): ...@@ -333,6 +333,12 @@ class ResourceAssigner():
else: else:
logger.info('no successors for otdb_id=%s', task['otdb_id']) logger.info('no successors for otdb_id=%s', task['otdb_id'])
#reschedule all scheduled successor tasks
#because they might need to update their specification due to this scheduled task
successor_tasks = self.radbrpc.getTasks(task['successor_ids'], task_status='scheduled')
for successor_task in successor_tasks:
self.radbrpc.updateTask(successor_task['id'], status='prescheduled')
except Exception as e: except Exception as e:
logger.error(e) logger.error(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment