You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to reliably perform the same task again if the timer execution stops. There is one issue that cannot be resolved.
If the canister is stopped, I don't think I can determine how to restart the timer.
There are two ways to stop the canister: manually by executing stop or when cycles are exhausted.
If manually stopped, timer continues; if cycles are exhausted, timer is stopped.
If it keeps running, TimerId can be saved in heap memory, and in case of upgrade, it is enough to set the timer again (by post_upgrade hook), so there should be no problem except for the above case.
If stable memory is available, TimerId can be stored continuously, so that in any case one timer can always be maintained by stopping past timers and setting a new timer.
I want to reliably perform the same task again if the timer execution stops. There is one issue that cannot be resolved.
If the canister is stopped, I don't think I can determine how to restart the timer.
There are two ways to stop the canister: manually by executing stop or when cycles are exhausted.
If manually stopped, timer continues; if cycles are exhausted, timer is stopped.
If it keeps running, TimerId can be saved in heap memory, and in case of upgrade, it is enough to set the timer again (by
post_upgrade
hook), so there should be no problem except for the above case.If stable memory is available, TimerId can be stored continuously, so that in any case one timer can always be maintained by stopping past timers and setting a new timer.
#392
If this is not the place to inquire, please let us know.
The text was updated successfully, but these errors were encountered: