MCPcopy Create free account
hub / github.com/Boris-code/feapder / __exit__

Method __exit__

feapder/utils/redis_lock.py:69–71  ·  view source on GitHub ↗
(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

67 return self
68
69 def __exit__(self, exc_type, exc_val, exc_tb):
70 self.stop_prolong_life = True
71 self.release()
72
73 def __repr__(self):
74 return "<RedisLock: {} >".format(self.lock_key)

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.95

Tested by

no test coverage detected