From aa439a7c1ebf7de2d6cb22d3d2c4a9cea8620930 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sun, 8 Jun 2025 21:48:36 -0400 Subject: [PATCH] feat: disable filelock temporarily --- joint_teapot/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/joint_teapot/app.py b/joint_teapot/app.py index a5e0160..8ec3a85 100644 --- a/joint_teapot/app.py +++ b/joint_teapot/app.py @@ -6,7 +6,7 @@ from pathlib import Path from time import sleep from typing import TYPE_CHECKING, List -from filelock import FileLock +# from filelock import FileLock from git import Repo from typer import Argument, Exit, Option, Typer, echo @@ -350,7 +350,8 @@ def joj3_all_env( f"try to acquire lock, file path: {lock_file_path}, " + f"timeout: {settings.joj3_lock_file_timeout}" ) - with FileLock(lock_file_path, timeout=settings.joj3_lock_file_timeout).acquire(): + if True: # disable the file lock temporarily + # with FileLock(lock_file_path, timeout=settings.joj3_lock_file_timeout).acquire(): logger.info("file lock acquired") retry_interval = 1 git_push_ok = False