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

TMSS-1939 & TMSS-1745: added implementation hint for TMSS-1745

parent 9dae72e4
No related branches found
No related tags found
1 merge request!955TMSS-1939
......@@ -318,6 +318,12 @@ class Scheduler:
logger.debug("find_best_next_schedulable_unit: units to score between '%s' and '%s': %s", lower_bound_start_time, upper_bound_stop_time, ','.join([str(su.id) for su in sorted(units_to_score, key=lambda x: x.id)]) or 'None')
#ToDo: TMSS-1745 Add unschedulable reasons
# implementation hint: subtract units_to_score from scheduling_units giving you the not_to_be_scheduled_units list
# then ask for each unit in this list if it can be run after lower_bound_start_time
# if not, call each evaluate_x_contraints method. If contraint not met, then you know which constraint is not met and why.
# return the correct reason as given in the ticket for each un-met constraint type.
# from the filtered down list of units, compute the (weighted) scores, and return the best scoring one.
best_scored_scheduling_unit = get_best_scored_scheduling_unit_scored_by_constraints(units_to_score, lower_bound_start_time, upper_bound_stop_time, self.search_gridder, self.fine_gridder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment