I use the following code to protect some code for being called by multiple processes at same time :
InterSystems Developer Community is a community of
23,481 amazing developers
We're a place where InterSystems IRIS programmers learn and share, stay up-to-date, grow together and have fun!