mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 18:37:46 +08:00
Track scheduler affinity epochs and key sorting
This commit is contained in:
@@ -248,12 +248,16 @@ fn remember_successful_local_scheduler_affinity(
|
||||
let Some(target) = local_scheduler_affinity_target(context.plan) else {
|
||||
return;
|
||||
};
|
||||
let expected_epoch =
|
||||
local_execution_candidate_metadata_from_report_context(context.report_context)
|
||||
.scheduler_affinity_epoch;
|
||||
|
||||
state.remember_scheduler_affinity_target(
|
||||
let _ = state.remember_scheduler_affinity_target_for_epoch(
|
||||
&cache_key,
|
||||
target,
|
||||
SCHEDULER_AFFINITY_TTL,
|
||||
LOCAL_EXECUTION_SCHEDULER_AFFINITY_MAX_ENTRIES,
|
||||
expected_epoch,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user