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

TMSS-2869: logging, try/except.

parent d7849bc0
No related branches found
No related tags found
No related merge requests found
...@@ -299,8 +299,11 @@ class Scheduler: ...@@ -299,8 +299,11 @@ class Scheduler:
scheduled_units = sorted(scheduled_units, key=lambda su: su.scheduled_start_time) scheduled_units = sorted(scheduled_units, key=lambda su: su.scheduled_start_time)
for scheduled_unit in list(scheduled_units): for scheduled_unit in list(scheduled_units):
self._raise_if_triggered() self._raise_if_triggered()
try:
scheduled_B_units = self.schedule_B_priority_units_in_gaps_around_scheduling_unit(scheduled_unit) scheduled_B_units = self.schedule_B_priority_units_in_gaps_around_scheduling_unit(scheduled_unit)
scheduled_units.extend(scheduled_B_units) scheduled_units.extend(scheduled_B_units)
except Exception as e:
logger.exception(e)
# return all scheduled (fixedtime and B-prio) units # return all scheduled (fixedtime and B-prio) units
return scheduled_units return scheduled_units
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment