Skip to content

feat: [DSM-103] Charge for storage after aborting DTS executions#10305

Open
alin-at-dfinity wants to merge 1 commit into
masterfrom
alin/DSM-103-charge-after-abort
Open

feat: [DSM-103] Charge for storage after aborting DTS executions#10305
alin-at-dfinity wants to merge 1 commit into
masterfrom
alin/DSM-103-charge-after-abort

Conversation

@alin-at-dfinity
Copy link
Copy Markdown
Contributor

When charging canisters for storage, we skip canisters with paused executions because they should have a constant cycle balance throughout the DTS execution. But we do charge canisters with aborted executions. Swap things around, so that we only charge for storage after having aborted paused executions (whether executions above the limit on regular rounds; or all paused executions on checkpoint rounds).

This ensures that we can charge all canisters on checkpoint rounds (and makes it more likely to charge the average busy canister on regular rounds), making it possible to eventually move away from trying to charge every canister every round just to make sure we succeed.

When charging canisters for storage, we don't charge canisters with paused executions because they should have a constant cycle balance throughuot the DTS execution. But we do charge canisters with aborted executions. So swap things around, so that we charge for storage after aborting paused executions (whether executions above the limit on regular rounds; or all paused executions on checkpoint rounds).

This ensures that we can charge all canisters on checkpoint rounds (and makes it more likely to charge the average busy canister on regular rounds), making it possible to evenrually mote away from trying to charge every canister every round just to make sure we succeed.
@alin-at-dfinity alin-at-dfinity requested a review from a team as a code owner May 24, 2026 07:54
@github-actions github-actions Bot added the feat label May 24, 2026
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.

1 participant