MCPcopy Create free account
hub / github.com/StackStorm/st2 / NoOpLock

Class NoOpLock

st2common/st2common/services/coordination.py:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46class NoOpLock(locking.Lock):
47 def __init__(self, name="noop"):
48 super(NoOpLock, self).__init__(name=name)
49
50 def acquire(self, blocking=True):
51 return True
52
53 def release(self):
54 return True
55
56 def heartbeat(self):
57 return True
58
59
60class NoOpAsyncResult(object):

Callers 1

get_lockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected