Skip to main content

Environment locks

4 commands. Toolkit id ooa.locks.

CommandWhat it does
Acquire lockTake 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 lockSee whether a lock is held, by which run, runner and person, and since when. A lock past its lease counts as free.
Lock is heldTrue when a run (this one or another) holds the lock now.
Release lockGive 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.