add_logger_to_factor_and_fix_a_small_bug_in_factor_runner (#85)

This commit is contained in:
Xu Yang
2024-07-18 17:00:41 +08:00
committed by GitHub
parent 9029c4c801
commit 08eb29ca3b
4 changed files with 35 additions and 14 deletions
@@ -108,8 +108,7 @@ class FactorFBWorkspace(FBWorkspace):
if self.raise_exception:
raise CodeFormatException(self.FB_CODE_NOT_SET)
else:
# TODO: to make the interface compatible with previous code. I kept the original behavior.
raise ValueError(self.FB_CODE_NOT_SET)
return self.FB_CODE_NOT_SET, None
with FileLock(self.workspace_path / "execution.lock"):
if FACTOR_IMPLEMENT_SETTINGS.enable_execution_cache:
# NOTE: cache the result for the same code and same data type