diff --git a/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py b/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py index f3ba537af21c9dd8c54e1eaac39f9190f42112a7..3716cc82820f1b5620488af4faa79b802cf74809 100644 --- a/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py +++ b/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py @@ -665,7 +665,7 @@ class Scheduler: candidate_queue.value, window_lower_bound_start_time, window_upper_bound_stop_time) - except SubtaskSchedulingException as e: + except (SubtaskSchedulingException, SchedulingUnitSchedulingException) as e: logger.error("schedule_next_scheduling_unit: Could not schedule scheduling_unit id=%s name='%s'. Error: %s", best_scheduling_unit.id, best_scheduling_unit.name, e) # prevent that it keeps trying to schedule this failed unit in this scheduler-round