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: --initial-margin for dfx canister delete #3769

Merged
merged 3 commits into from
May 27, 2024

Conversation

sesi200
Copy link
Contributor

@sesi200 sesi200 commented May 24, 2024

Description

dfx canister delete occasionally fails because it attempts to withdraw too many cycles from the canister before it is deleted. Usually, dfx tries again with a larger margin of cycles, but sometimes this gets stuck. It is now possible to use --initial-margin to manually supply a margin in case the automatic margin does not work.

This is a temporary workaround until a clean solution exists (requires spec change, runtime change, wallet change, agent support).

Fixes SDK-1556

How Has This Been Tested?

Tested manually on mainnet

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@sesi200 sesi200 requested review from chenyan-dfinity and a team as code owners May 24, 2024 08:23
@sesi200 sesi200 enabled auto-merge (squash) May 24, 2024 11:36
Copy link
Member

@ericswanson-dfinity ericswanson-dfinity left a comment

Choose a reason for hiding this comment

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

Just a minor note on the documentation update

@sesi200 sesi200 merged commit 5cfddd8 into master May 27, 2024
284 checks passed
@sesi200 sesi200 deleted the SDK-1556-dfx-canister-delete-fails-on-mainnet branch May 27, 2024 09:33
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