From 03ee01ad5ac021a44af760b8d63a02a3693af08a Mon Sep 17 00:00:00 2001 From: Alexandra Zapuc Date: Wed, 6 Dec 2023 15:22:18 +0000 Subject: [PATCH] Add note for stop canister --- spec/index.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/index.md b/spec/index.md index 503788f04..c7ff456b3 100644 --- a/spec/index.md +++ b/spec/index.md @@ -2338,6 +2338,13 @@ It's important to note that a snapshot will increase the memory footprint of the Only controllers can take a snapshot of a canister and restore it. +:::note + +It's important to stop a canister before taking a snapshot to ensure that all outstanding callbacks are completed. Failing to do so may cause the canister to not make sense of the callbacks if its state is restored using the snapshot. +It is expected that the canister admin (or their tooling) does this separately. + +::: + ### IC method `load_snapshot` {#ic-take_snapshot} This method loads a snapshot identified by `snapshot_id` onto the canister. This method fails if the snapshot was previously deleted.