diff --git a/src/admin.py b/src/admin.py index c6b62f0f..e841933d 100644 --- a/src/admin.py +++ b/src/admin.py @@ -262,9 +262,6 @@ def routine(no_backup=False): logger.warning("Schedule lock acquired by another process. No need to run it in this process.") except Exception as e: logger.error(f"An error occurred during the routine: {e}") - if lock_acquired: - _lock.release() - return finally: if lock_acquired: _lock.release()