Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
763e9b01
Commit
763e9b01
authored
Dec 23, 2022
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-2227
: mark the B-prio schedulable units as not placed yet
parent
95fb7924
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py
+9
-3
9 additions, 3 deletions
...MSS/backend/services/scheduling/lib/dynamic_scheduling.py
with
9 additions
and
3 deletions
SAS/TMSS/backend/services/scheduling/lib/dynamic_scheduling.py
+
9
−
3
View file @
763e9b01
...
@@ -287,7 +287,12 @@ class Scheduler:
...
@@ -287,7 +287,12 @@ class Scheduler:
if
scheduled_unit
:
if
scheduled_unit
:
scheduled_units
.
append
(
scheduled_unit
)
scheduled_units
.
append
(
scheduled_unit
)
# can we fit any B-prio units in the new gap(s) in the schedule?
# mark the B-prio schedulable units as not placed yet....
for
scheduling_unit
in
get_dynamically_schedulable_scheduling_units
(
priority_queue
=
models
.
PriorityQueueType
.
objects
.
get
(
value
=
models
.
PriorityQueueType
.
Choices
.
B
.
value
)).
filter
(
placed
=
True
):
scheduling_unit
.
placed
=
False
scheduling_unit
.
save
()
# ... and see if we can fit any B-prio units in the new gap(s) in the schedule?
scheduled_B_units
=
self
.
place_B_priority_units_in_gaps_around_scheduling_unit
(
scheduled_unit
,
do_schedule
=
True
)
scheduled_B_units
=
self
.
place_B_priority_units_in_gaps_around_scheduling_unit
(
scheduled_unit
,
do_schedule
=
True
)
scheduled_units
.
extend
(
scheduled_B_units
)
scheduled_units
.
extend
(
scheduled_B_units
)
...
@@ -568,6 +573,7 @@ class Scheduler:
...
@@ -568,6 +573,7 @@ class Scheduler:
# mark the schedulable units that they are not 'placed' yet by the scheduler.
# mark the schedulable units that they are not 'placed' yet by the scheduler.
for
scheduling_unit
in
get_dynamically_schedulable_scheduling_units
():
for
scheduling_unit
in
get_dynamically_schedulable_scheduling_units
():
if
scheduling_unit
.
placed
:
scheduling_unit
.
placed
=
False
scheduling_unit
.
placed
=
False
scheduling_unit
.
save
()
scheduling_unit
.
save
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment