Release the lock.
(
self,
exc_type: type[BaseException] | None,
exc_val: BaseException | None,
exc_tb: TracebackType | None,
)
| 209 | time.sleep(0.1) |
| 210 | |
| 211 | def __exit__( |
| 212 | self, |
| 213 | exc_type: type[BaseException] | None, |
| 214 | exc_val: BaseException | None, |
| 215 | exc_tb: TracebackType | None, |
| 216 | ) -> bool: |
| 217 | """Release the lock.""" |
| 218 | if self._acquired: |
| 219 | self._db.release(self._lock_name, os.getpid()) |
| 220 | self._acquired = False |
| 221 | |
| 222 | return False |
| 223 | |
| 224 | |
| 225 | def write_lock( |