chore: data science scenario UI updates (#757)

* ui changes

* add ours vs medal threshold

* add success loop statistic of components

* show times info

* UI updates

* summary selected

* change colors

* fix CI

* add stat hours param for `mle_summary.py --summary` command

* add 24h summary button

* fix CI

* add logger info for dockerEnv/condaEnv running time
This commit is contained in:
XianBW
2025-04-07 16:24:27 +08:00
committed by GitHub
parent 743f070d48
commit f0d919f04c
4 changed files with 254 additions and 89 deletions
+4 -3
View File
@@ -132,9 +132,10 @@ class Env(Generic[ASpecificEnvConf]):
entry, local_path, env, running_extra_volume=running_extra_volume, remove_timestamp=remove_timestamp
)
end = time.time()
if end - start >= self.conf.running_timeout_period:
print(
f"[red]The running time exceeds {self.conf.running_timeout_period} seconds, so the process is killed.[/red]"
logger.info(f"Running time: {end - start} seconds")
if end - start + 1 >= self.conf.running_timeout_period:
logger.warning(
f"The running time exceeds {self.conf.running_timeout_period} seconds, so the process is killed."
)
log_output += f"\n\nThe running time exceeds {self.conf.running_timeout_period} seconds, so the process is killed."
return log_output, return_code