ground-android icon indicating copy to clipboard operation
ground-android copied to clipboard

[Data sync] Cancel workers when removing offline surveys or signing out

Open gino-m opened this issue 1 year ago • 2 comments

The fact that workers might still be running could lead to db inconsistency. Before doing anything else, we should cancel the running workers for all LOIs in the survey being removed.

gino-m avatar Nov 21 '24 19:11 gino-m

you need to run synchronous flow for the between functionwhich is causing the inconsistency, or can cache a token/breadcrumb for the transaction. kindly check!

himanshukar avatar Nov 26 '25 19:11 himanshukar

you need to run synchronous flow for the between functionwhich is causing the inconsistency, or can cache a token/breadcrumb for the transaction. kindly check!

What does "the between function" mean? Can you please share an example of what you mean in a PR or a Gist?

gino-m avatar Nov 26 '25 19:11 gino-m