import os
from pathlib import Path

DEFAULT_CPU = '1:1'
DEFAULT_MEMORY = '4Gi:4Gi'
DEFAULT_SCHEDULER = None  # None uses Kubernetes default scheduler
DEFAULT_PRIORITY = None  # None means no priority class is set
DEFAULT_RESTART_POLICY = 'Never'
DEFAULT_JUPYTER_PORT = '8888'
DEFAULT_BACKOFF_LIMIT = None  # 6 retries by default
DEFAULT_JOB_TTL_SECONDS_AFTER_FINISHED = 1296000  # 15 days
DEFAULT_JUPYTER_TTL_SECONDS_AFTER_FINISHED = 1296000  # 15 days
DEFAULT_DEBUG_TTL_SECONDS_AFTER_FINISHED = 21600  # 6 hours
DEFAULT_DEBUG_JOB_DURATION_SECONDS = 21600  # 6 hours
XDG_DATA_HOME = os.getenv("XDG_DATA_HOME", Path.home() / ".local" / "share")
JET_HOME = Path(XDG_DATA_HOME) / "jet"
