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

Task #10339: more mom statuses to remove radb tasks on.

parent 63fe6ea0
No related branches found
No related tags found
No related merge requests found
...@@ -177,8 +177,13 @@ class ScheduleChecker(): ...@@ -177,8 +177,13 @@ class ScheduleChecker():
for task in unrun_tasks: for task in unrun_tasks:
mom_id = int(task['mom_id']) mom_id = int(task['mom_id'])
if (mom_id not in mom_details or if (mom_id not in mom_details or
mom_details[mom_id]['object_status'] == 'opened'): mom_details[mom_id]['object_status'] in ['opened', 'described', 'suspended']):
logger.info('task %s mom_id=%s otdb_id=%s was removed or set to status opened. removing data from disk and task from radb', task['id'], task['mom_id'], task['otdb_id']) logger.info('task %s mom_id=%s otdb_id=%s has radb_status=%s and mom_status=%s => removing data from disk and task from radb',
task['id'],
task['mom_id'],
task['otdb_id'],
task['status'],
mom_details[mom_id]['object_status'])
# auto delete data for tasks which went back to opened in mom (for pipeline restarts for example) # auto delete data for tasks which went back to opened in mom (for pipeline restarts for example)
# The reason to delete it here is because otherwise the cleanupservice tries to get it's info from an already deleted task in radb/otdb # The reason to delete it here is because otherwise the cleanupservice tries to get it's info from an already deleted task in radb/otdb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment