From 145c15f99da426e2633abe25fd8c2480e17cf4b2 Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Thu, 19 Dec 2024 11:54:19 -0500 Subject: [PATCH 1/2] Update ic-interface-spec.md Make it more clear about confirming canister status in canister_pre_upgrade. --- docs/references/ic-interface-spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/references/ic-interface-spec.md b/docs/references/ic-interface-spec.md index e22d82385f..99c3e0903f 100644 --- a/docs/references/ic-interface-spec.md +++ b/docs/references/ic-interface-spec.md @@ -1666,7 +1666,7 @@ This function allows a canister to find out if it is running, stopping or stoppe Status `1` indicates running, `2` indicates stopping, and `3` indicates stopped. - Status `3` (stopped) can be observed, for example, in `canister_pre_upgrade` and can be used to prevent accidentally upgrading a canister that is not fully stopped. + Observing the canister status is particularly useful during `canister_pre_upgrade`. Confirming that the status is 3 (stopped) helps prevent accidentally upgrading a canister that has not fully stopped. ### Canister version {#system-api-canister-version} From 7fb89dae6e874e405117a11751b971838c4ce0af Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Thu, 19 Dec 2024 12:10:49 -0500 Subject: [PATCH 2/2] Update docs/references/ic-interface-spec.md Co-authored-by: mraszyk <31483726+mraszyk@users.noreply.github.com> --- docs/references/ic-interface-spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/references/ic-interface-spec.md b/docs/references/ic-interface-spec.md index 99c3e0903f..95f102e0fa 100644 --- a/docs/references/ic-interface-spec.md +++ b/docs/references/ic-interface-spec.md @@ -1666,7 +1666,7 @@ This function allows a canister to find out if it is running, stopping or stoppe Status `1` indicates running, `2` indicates stopping, and `3` indicates stopped. - Observing the canister status is particularly useful during `canister_pre_upgrade`. Confirming that the status is 3 (stopped) helps prevent accidentally upgrading a canister that has not fully stopped. + Observing the canister status is particularly useful during `canister_post_upgrade`. Confirming that the status is 3 (stopped) helps prevent accidentally upgrading a canister that has not fully stopped. ### Canister version {#system-api-canister-version}