Environment locks
4 commands. Toolkit id ooa.locks.
| Command | What it does |
|---|---|
| Acquire lock | Take a named lock so no other agent run uses the same system at the same time. Optionally wait until the run holding it gives it back. The lock is given back by Release lock, or when this agent ends. With One CommandCenter the lock is shared by every runner; in OneAgentStudio on its own it works on this computer only. |
| Check lock | See whether a lock is held, by which run, runner and person, and since when. A lock past its lease counts as free. |
| Lock is held | True when a run (this one or another) holds the lock now. |
| Release lock | Give back a lock this run holds, so another run can take it. A lock this run does not hold is left alone: released is false and the log says why. |