JOJ3-config-generator/joj3_config_generator/models/const.py
李衍志523370910113 ae592a3825
Some checks failed
build / build (push) Failing after 5m17s
fix: log path (#17)
- fix log path for `joj-mon`

Reviewed-on: #17
Reviewed-by: 张泊明518370910136 <bomingzh@sjtu.edu.cn>
Co-authored-by: Nuvole <jon-lee@sjtu.edu.cn>
Co-committed-by: Nuvole <jon-lee@sjtu.edu.cn>
2025-05-26 10:19:26 +08:00

18 lines
569 B
Python

from pathlib import Path
from joj3_config_generator.models.common import Memory, Time
DEFAULT_CPU_LIMIT = Time("1s")
DEFAULT_MEMORY_LIMIT = Memory("256m")
DEFAULT_FILE_LIMIT = Memory("32m")
DEFAULT_CASE_SCORE = 5
DEFAULT_CLOCK_LIMIT_MULTIPLIER = 2
DEFAULT_PROC_LIMIT = 50
JOJ3_CONFIG_ROOT = Path("/home/tt/.config/joj")
TEAPOT_CONFIG_ROOT = Path("/home/tt/.config/teapot")
CACHE_ROOT = Path("/home/tt/.cache")
JOJ3_LOG_PATH = CACHE_ROOT / "joj3" / "joj3.log"
TEAPOT_LOG_PATH = CACHE_ROOT / "joint-teapot-debug.log"
ACTOR_CSV_PATH = JOJ3_CONFIG_ROOT / "students.csv"