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
The KV store works with snapshots. Every worker gets a fresh version and returns an edited state. Then, the KV state gets overwritten by the new one.
When a worker run returns an Error, wws generates a default WasmOutput object with a generic error. This default output includes an empty kv state that may flush the original state.
To avoid this, wws should ignore states of failed workers run or provide create aWasmOutput instance with the initial KV value.
The KV store works with snapshots. Every worker gets a fresh version and returns an edited state. Then, the KV state gets overwritten by the new one.
When a worker run returns an
Error
,wws
generates a defaultWasmOutput
object with a generic error. This default output includes an emptykv
state that may flush the original state.To avoid this,
wws
should ignore states of failed workers run or provide create aWasmOutput
instance with the initial KV value.Related code
wasm-workers-server/src/main.rs
Lines 130 to 137 in be99d39
The text was updated successfully, but these errors were encountered: