import { DataStore } from './';; const COLLECTION='wf_locks'; const WAIT=1500; const MAX_TRIES=20; class InstanceLocker { dataStore; constructor(dataStore) { this.dataStore=dataStore; } async lock(id) { var counter=0; var failed=true; while(counter++