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

TMSS-only consider active projects

parent 7d9d08fb
No related branches found
No related tags found
1 merge request!715TMSS-671 & TMSS-1135 & TMSS-1332
...@@ -92,6 +92,9 @@ def schedule_manual_scheduling_units(): ...@@ -92,6 +92,9 @@ def schedule_manual_scheduling_units():
# get the manually schedulable scheduling_units in most-recently-updated order. # get the manually schedulable scheduling_units in most-recently-updated order.
schedulable_units = get_manually_schedulable_scheduling_units() 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()) logger.info("trying to schedule %s scheduling units with manual at constraint", schedulable_units.count())
for schedulable_unit in schedulable_units: for schedulable_unit in schedulable_units:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment