Clear update.lk
(self, lock_type="update")
| 748 | return cleaned |
| 749 | |
| 750 | def clear_lock(self, lock_type="update"): |
| 751 | """ |
| 752 | Clear update.lk |
| 753 | """ |
| 754 | if self.__class__._master_lock.acquire(timeout=60) is False: |
| 755 | # if gitfs works right we should never see this timeout error. |
| 756 | log.error("gitfs master lock timeout!") |
| 757 | raise TimeoutError("gitfs master lock timeout!") |
| 758 | try: |
| 759 | return self._clear_lock(lock_type) |
| 760 | finally: |
| 761 | self.__class__._master_lock.release() |
| 762 | |
| 763 | def _clear_lock(self, lock_type="update"): |
| 764 | """ |
no test coverage detected