Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Dec 3, 2025

No description provided.

@isoos isoos requested review from jonasfj and sigurdm December 3, 2025 13:10

/// Executes [fn] in compute [zone] and handles zone-related exceptions
/// with the appropriate bans.
Future<void> withZoneAndInstance(
Copy link
Member

Choose a reason for hiding this comment

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

let's not move this logic. Do we need to?

The interactions here are subtle, this is not reusable, and shouldn't attempt to be.

Whether to ban or not ban a zone is a scheduling decision.

I'm not keen on ComputeZoneTracker being mutable, nor am I keen on it containing much logic. Isn't it mostly just a container for state between iterations.

Keeping state immutable, means runSchedulerIteration (I assume we are working towards) will have to return a new state object, that it can mutate with timers after returning it.

I think spreading logic across files will make it harder to track.


wouldn't it be better for runSchedulerIteration to return a ZoneTrackerState object? that is effectively immutable.

@isoos
Copy link
Collaborator Author

isoos commented Dec 4, 2025

Closing as it is planned to be done differently.

@isoos isoos closed this Dec 4, 2025
@isoos isoos deleted the task-zone-tracker branch December 4, 2025 14:47
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.

2 participants