Files
NexQuant/rdagent/components/runner/conf.py
T

17 lines
453 B
Python
Raw Normal View History

from __future__ import annotations
from pathlib import Path
from pydantic_settings import BaseSettings
class RunnerSettings(BaseSettings):
2024-07-17 15:00:13 +08:00
class Config:
env_prefix = "RUNNER_" # Use RUNNER_ as prefix for environment variables
2024-07-17 15:00:13 +08:00
cache_result: bool = True # whether to cache the result of the docker execution
cache_path: str = str(Path.cwd() / "runner_cache/") # the path to store the cache
RUNNER_SETTINGS = RunnerSettings()