mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 03:09:50 +08:00
fix: keep scheduler affinity out of runtime checks
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::collections::BTreeSet;
|
||||
|
||||
use aether_scheduler_core::{candidate_key, SchedulerAffinityTarget};
|
||||
use aether_scheduler_core::candidate_key;
|
||||
|
||||
use super::runtime::{current_candidate_runtime_skip_reason, CandidateRuntimeSelectionSnapshot};
|
||||
use super::{SchedulerMinimalCandidateSelectionCandidate, SchedulerSkippedCandidate};
|
||||
@@ -9,7 +9,6 @@ pub(super) fn resolve_scheduler_candidate_selectability(
|
||||
candidates: Vec<SchedulerMinimalCandidateSelectionCandidate>,
|
||||
runtime_snapshot: &CandidateRuntimeSelectionSnapshot,
|
||||
now_unix_secs: u64,
|
||||
cached_affinity_target: Option<&SchedulerAffinityTarget>,
|
||||
) -> (
|
||||
Vec<SchedulerMinimalCandidateSelectionCandidate>,
|
||||
Vec<SchedulerSkippedCandidate>,
|
||||
@@ -21,12 +20,9 @@ pub(super) fn resolve_scheduler_candidate_selectability(
|
||||
|
||||
for candidate in candidates {
|
||||
let key = candidate_key(&candidate);
|
||||
if let Some(skip_reason) = current_candidate_runtime_skip_reason(
|
||||
&candidate,
|
||||
runtime_snapshot,
|
||||
now_unix_secs,
|
||||
cached_affinity_target,
|
||||
) {
|
||||
if let Some(skip_reason) =
|
||||
current_candidate_runtime_skip_reason(&candidate, runtime_snapshot, now_unix_secs)
|
||||
{
|
||||
if emitted_skipped_keys.insert(key) {
|
||||
skipped.push(SchedulerSkippedCandidate {
|
||||
candidate,
|
||||
|
||||
Reference in New Issue
Block a user