fix: update DS env setup with competition volume and timeout (#878)

* refactor: update DS env setup with competition volume and timeout

* refactor: update volume mapping and timeout based on run type
This commit is contained in:
you-n-g
2025-05-16 02:05:15 +08:00
committed by GitHub
parent da6f662dda
commit 60ec58f5df
@@ -43,8 +43,17 @@ class ModelDumpEvaluator(CoSTEEREvaluator):
code=err_msg,
final_decision=False,
)
env = get_ds_env()
env.conf.extra_volumes = {self.scen.debug_path: T("scenarios.data_science.share:scen.input_path").r()}
data_source_path = (
f"{DS_RD_SETTING.local_data_path}/{self.scen.competition}"
if self.data_type == "full"
else self.scen.debug_path
)
env = get_ds_env(
extra_volumes={data_source_path: T("scenarios.data_science.share:scen.input_path").r()},
running_timeout_period=(
DS_RD_SETTING.full_timeout if self.data_type == "full" else DS_RD_SETTING.debug_timeout
),
)
# 2) check the result and stdout after reruning the model.