Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: EXC-1787: Fix scheduler AP divergence #2563

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

berestovskyy
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the fix label Nov 12, 2024
Comment on lines 366 to 371
let good_standing = canister.scheduler_state.accumulated_priority >= 0.into();
if !has_aborted_or_paused_execution || !good_standing {
RoundSchedule::apply_priority_credit(canister);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this actually needed? It feels to me like the only required change is the one below (bundle negative AP DTS executions with non-DTS executions instead of with the other DTS executions).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To treat canisters with long executions just like canisters with new executions we need also to charge them every round. But this change does not change much...

@berestovskyy berestovskyy force-pushed the andriy/exc-1787-scheduler-divergence-debug branch from 6c25e97 to ed66eee Compare November 13, 2024 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants