Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Dec 5, 2025

No description provided.

@isoos isoos requested a review from jonasfj December 5, 2025 14:43
// Map from zone to DateTime when zone is allowed again
final zoneBannedUntil = <String, DateTime>{
for (final zone in compute.zones) zone: DateTime(0),
...state.zoneBannedUntil,
Copy link
Member

Choose a reason for hiding this comment

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

It's remove the old bans that are too old, so zoneBannedUntil can't grow indefinitely, should compute zones over time be large.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: the current code relies on the zoneBannedUntil to contain all available zones. I think it is better to rely on the zones list directly, will refactor.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, will do this in a follow-up

Comment on lines 140 to 148
// A zone being exhausted is normal operations, we just use another
// zone for 15 minutes.
_log.info(
'zone resources exhausted, banning ${e.zone} for 30 minutes',
e,
st,
);
// Ban usage of zone for 30 minutes
banZone(e.zone, minutes: 30);
Copy link
Member

Choose a reason for hiding this comment

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

15 or 30 minutes, did we change this recently.

Code and comments are out of sync.

isoos and others added 3 commits December 8, 2025 13:28
@isoos isoos merged commit 34dc70b into dart-lang:master Dec 8, 2025
45 of 46 checks passed
@isoos isoos deleted the task-create branch December 8, 2025 12:56
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