Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move lookback limit into the QueuedJobsIterator #4003

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

d80tb7
Copy link
Collaborator

@d80tb7 d80tb7 commented Oct 12, 2024

Move the lookback limit up the stack from the QueuedGangIterator to the QueuedJobsIterator. This has a couple of benefits:

  • Simplifies the QueuedGangIterator, which is already fairly complex
  • Means we can get rid of all the logic about when "Evicted" jobs need to contribute to the lookback. QueuedJobsIterator only ever contains queued jobs (as opposed to evicted jobs) so the lookback always applies.

@@ -358,18 +358,6 @@ func TestQueueScheduler(t *testing.T) {
Queues: testfixtures.SingleQueuePriorityOne("A"),
ExpectedScheduledIndices: []int{0},
},
"MaxQueueLookback": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This no longer applies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant