Disable Service/Process/Operation from a function?
Hi,
I am working on a custom service that reads from a file and import content into a global. The problem is that global is also used by other processes. I have been trying to find any way to stop/disable a process from cache code so after reading the file, process is stopped, global updated and then process is restored. But I could not find anything, just to start/stop the whole production
Do ##class(Ens.Director).StopProduction()
Any ideas if this is something that can be done in ensemble?
Thanks
In my case, processes accessing the global are just to read data from global, the global will not be changed by them. It is just once a month the global needs to be updated and only then is when the locks would be required.
Good point!
Thanks
Remove the lock before starting Ensemble service.
Have you checked Locks? If more than one process works with the same global locks are the way to go.
Thank you both for your quick replies.
That was exactly what I was looking for....
I think I will be using both...one to stop the other processes accessing the global + locks to really ensure no other processes access the global.
My code will be something like the following:
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue