diff --git a/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py b/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py index 068bc98fc0054d5dac54755b3e86cad60479a290..89416f722c11b08d363d2854b49028d931910d0a 100644 --- a/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py +++ b/SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py @@ -92,6 +92,9 @@ def schedule_manual_scheduling_units(): # get the manually schedulable scheduling_units in most-recently-updated order. schedulable_units = get_manually_schedulable_scheduling_units() + # only consider active projects + schedulable_units = schedulable_units.filter(draft__scheduling_set__project__project_state_value=models.ProjectState.Choices.ACTIVE.value) + logger.info("trying to schedule %s scheduling units with manual at constraint", schedulable_units.count()) for schedulable_unit in schedulable_units: