From ee17d86614e77e376ebed94b08877bcb27bda357 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Fri, 18 Oct 2024 16:20:09 -0400 Subject: [PATCH] feat: lazy load obj before file lock --- joint_teapot/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/joint_teapot/app.py b/joint_teapot/app.py index 3ba1d28..c3d8126 100644 --- a/joint_teapot/app.py +++ b/joint_teapot/app.py @@ -250,6 +250,7 @@ def joj3_scoreboard( logger.info(f"debug log to file: {settings.log_file_path}") if joj3.check_skipped(score_file_path, "skip-scoreboard"): return + tea.pot.git # trigger lazy load lock_file_path = os.path.join( settings.repos_dir, repo_name, settings.joj3_lock_file_path ) @@ -330,6 +331,7 @@ def joj3_failed_table( logger.info(f"debug log to file: {settings.log_file_path}") if joj3.check_skipped(score_file_path, "skip-failed-table"): return + tea.pot.git # trigger lazy load lock_file_path = os.path.join( settings.repos_dir, repo_name, settings.joj3_lock_file_path )