Hi dev,
my canister using ic-cdk-timers
for schedule random task by business logic
due to this document, it said
Canister upgrades: The library keeps a global list of multiple and periodic tasks inside the canister heap. During a canister upgrade, a fresh WebAssembly state is created, all the timers are deactivated, and the list of timers is cleared. It is up to the canister developer to serialize the timers in the canister_pre_upgrade and reactivate them in the canister_post_upgrade method if needed.
but the ic-cdk-timers
didn’t expose the threadlocal.
How can I access the ic-cdk-timers
heap memory while upgrade canister.
What is the best practice here?