Skip to content

Commit

Permalink
Adds a comment about the ordering of unscheduled jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruomingp committed Dec 8, 2024
1 parent 0333014 commit 7d9a4e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions axlearn/cloud/common/scheduler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ def test_validate_tiers(self):
resource_limits=[{"v4": 1}, {"v4": 1}, {"v4": 1}],
expected_project_limits={"a": {"v4": 0, "v3": 0}, "b": {"v4": 3}},
expected_verdicts={"a1": False, "b1": True, "b2": False},
# While both "a1" and "b2" are not scheduled, "b2" is ranked ahead of "a1" because
# its demand/limit ratio is lower (there's no v3 resource, so a1's ratio is infinite).
expected_tiers={"b1": 2, "b2": None, "a1": None},
),
# Test that we can accumulate across tiers across resource types.
Expand Down

0 comments on commit 7d9a4e4

Please sign in to comment.