Alexey Zolotarev
02/27/2025, 10:14 AMwasm_main
, which in turn calls a host function host_start_job
. This host function might return an immediate result or run for days, and the host worker might be restarted during that time. Suppose that the module in question doesn't have any state in linear memory but might have some global state that it can pass to host_start_job
for temporary storage.
I'm wondering if it might be possible to store the current Wasm module execution stack (e.g., in a database) if the host_start_job
call doesn't complete immediately, and then reinitialize the module later (possibly in a different worker), continuing the execution of the module as if the function completed synchronously, transparently to the guest module?Charlie Tapping
02/27/2025, 12:20 PMAlexey Zolotarev
02/27/2025, 12:30 PMCharlie Tapping
02/27/2025, 12:44 PMAlexey Zolotarev
02/27/2025, 12:46 PM