Skip to content

Commit

Permalink
feat: lazy load obj before file lock
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh committed Oct 18, 2024
1 parent 95014df commit ee17d86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions joint_teapot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit ee17d86

Please sign in to comment.