Skip to content

refactor: [DSM-103] Debug-only SubnetSchedule::fully_executed_canisters field#10089

Merged
alin-at-dfinity merged 1 commit intomasterfrom
alin/DSM-103-SubnetSchedule-fully_executed_canisters
May 5, 2026
Merged

refactor: [DSM-103] Debug-only SubnetSchedule::fully_executed_canisters field#10089
alin-at-dfinity merged 1 commit intomasterfrom
alin/DSM-103-SubnetSchedule-fully_executed_canisters

Conversation

@alin-at-dfinity
Copy link
Copy Markdown
Contributor

In debug mode, explicitly collect all fully executed canisters in a set within SubnetSchedule. This is because with active-canister-only scheduling, CanisterPriority entries for newly idle canisters may be dropped, making it impossible to test whether they had been fully executed or not.

Strictly speaking, this is no longer necessary -- we used to drop CanisterPriority entries in RoundSchedule::finish_round(), now we only drop them in the subsequent RoundSchedule::start_iteration(), i.e. in the next round -- but the implementation may change and it's nice to have a safety net.

…rs field

In debug mode, explicitly collect all fully executed canisters in a set within SubnetSchedule. This is because with active-canister-only scheduling, CanisterPriority entries for newly idle canisters may be dropped, making it impossible to test whether they had been fully executed or not.

Strictly speaking, this is no longer necessary -- we used to drop CanisterPriority entries in RoundSchedule::finish_round(), now we only drop them in the next RoundSchedule::start_iteration(), i.e. in the next round -- but the implementation may change and it's nice to have a safety net.
@alin-at-dfinity alin-at-dfinity requested a review from a team as a code owner May 5, 2026 09:40
@alin-at-dfinity alin-at-dfinity enabled auto-merge May 5, 2026 09:56
@alin-at-dfinity alin-at-dfinity added this pull request to the merge queue May 5, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 5, 2026
@alin-at-dfinity alin-at-dfinity added this pull request to the merge queue May 5, 2026
Merged via the queue into master with commit dc35b78 May 5, 2026
64 of 66 checks passed
@alin-at-dfinity alin-at-dfinity deleted the alin/DSM-103-SubnetSchedule-fully_executed_canisters branch May 5, 2026 12:14
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