-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent scheduling from mutating the jobDb (#2838)
* Make scheduling not mutate the jobDb Preempted/evicted jobs get mutated as part of the scheduling loop This causes a bug where preemptible jobs are always retried on the same node: - As the nodeSelector is mutated as part of scheduling to point at a specific node To fix this, we now deepcopy the evicted jobs as part of the scheduling round. Meaning the jobDb objects don't get mutated and prevents these mutations being persisted between scheduling rounds * Remove comment * Remove comment --------- Co-authored-by: owenthomas17 <2owen.thomas@gmail.com>
- Loading branch information
1 parent
b13cdd8
commit b85fe50
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters