Skip to content

Commit

Permalink
Use task deadlines only when a plan ahead is not provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
sukritkalra committed Mar 26, 2024
1 parent 24407af commit 02bd4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedulers/tetrisched_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def _get_plan_ahead_this_cycle(
`EventTime`: The plan-ahead for this scheduling cycle.
"""
plan_ahead_this_cycle = None
if self.enforce_deadlines:
if self.enforce_deadlines and self._plan_ahead.is_invalid():
plan_ahead_this_cycle = max(task.deadline for task in tasks)
else:
if self._plan_ahead.is_invalid():
Expand Down

0 comments on commit 02bd4f6

Please sign in to comment.