forked from JOJ/Joint-Teapot
		
	feat: lazy load obj before file lock
This commit is contained in:
		
							parent
							
								
									95014dfcde
								
							
						
					
					
						commit
						ee17d86614
					
				|  | @ -250,6 +250,7 @@ def joj3_scoreboard( | ||||||
|     logger.info(f"debug log to file: {settings.log_file_path}") |     logger.info(f"debug log to file: {settings.log_file_path}") | ||||||
|     if joj3.check_skipped(score_file_path, "skip-scoreboard"): |     if joj3.check_skipped(score_file_path, "skip-scoreboard"): | ||||||
|         return |         return | ||||||
|  |     tea.pot.git  # trigger lazy load | ||||||
|     lock_file_path = os.path.join( |     lock_file_path = os.path.join( | ||||||
|         settings.repos_dir, repo_name, settings.joj3_lock_file_path |         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}") |     logger.info(f"debug log to file: {settings.log_file_path}") | ||||||
|     if joj3.check_skipped(score_file_path, "skip-failed-table"): |     if joj3.check_skipped(score_file_path, "skip-failed-table"): | ||||||
|         return |         return | ||||||
|  |     tea.pot.git  # trigger lazy load | ||||||
|     lock_file_path = os.path.join( |     lock_file_path = os.path.join( | ||||||
|         settings.repos_dir, repo_name, settings.joj3_lock_file_path |         settings.repos_dir, repo_name, settings.joj3_lock_file_path | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user