cancel
Showing results for 
Search instead for 
Did you mean: 

Process Lock

Kamal2017
Level 4
Is there any way to identify if a process running on a bot is already in use by any other bot similar to Environment lock ? Example - Suppose I have multiple bots running a single process where we have called another sub processes 'populate queue' and 'processing transaction' within the single process. I would like to check if populate queue is already running on another bot so that i should not let other bots running the populate queue step.
1 REPLY 1

DaveMorris
Level 14
What you describe is the purpose of an Environment Lock. That subprocess should have acquire lock logic/call at the beginning and release lock at the end. Be sure to consider what will happen if the other sessions wait for the lock. You may want them all to simply check for the lock and move on to something else if the lock is held. Is there a reason you don't want to use an Environment Lock? It sounds you're already aware of it, and I don't know of any other way to accomplish what you want without a more complicated solution.
Dave Morris 3Ci at Southern Company Atlanta, GA