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

Task #9607: set task to error if estimator fails

parent 8d620c9f
No related branches found
No related tags found
No related merge requests found
......@@ -207,8 +207,13 @@ class ResourceAssigner():
logger.info('skipping resource assignment for CEP4 task otdb_id=%s because status=%s' % (otdb_id, status))
return
try:
needed = self.getNeededResouces(specification_tree)
logger.info('doAssignment: getNeededResouces=%s' % (needed,))
except Exception as e:
logger.error(e)
self.radbrpc.updateTask(taskId, status='error')
self._sendNotification(task, 'error')
if not str(otdb_id) in needed:
logger.error("no otdb_id %s found in estimator results %s" % (otdb_id, needed))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment