Two options come to mind
- To make things simpler, you could avoid running a second operation when a previous operation on the same document is still running
- Use optimistic locking to make sure that you don’t overwrite data (if this is an option and if you have a database)


















