ground-android
ground-android copied to clipboard
[Data sync] Cancel workers when removing offline surveys or signing out
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.
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!
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?