refactor: one autorun worktree path and checkout

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 19:50:46 +01:00
1 parent 6c92b0172e
commit eec4ff9972
6 files changed
+29 -17

No files matched your search

+2 -4
View File
@@ -19,6 +19,7 @@ from pathlib import Path
from core.artifacts import TIMESTAMP_KEYS
from core.hostguard import LockBusy, free_gb, global_lock, lock_busy
from core.paths import AUTORUN_DIR, AUTORUN_WORKTREE
from core.statefile import now_iso, save_state
from unattended.breaker import may_push, refresh_breaker
from unattended.jobs import AutorunError, BLOCKED, DEFERRED, FAILED, Job, OK, REFUSED, Step, job_env
@@ -34,9 +35,6 @@ from unattended.worktree import (
)
AUTORUN_DIR = Path(".cache") / "autorun"
ALERT_FREE_GB = 100
LOG_DAYS = 30
SEGFAULT_CODES = (139, -11)
@@ -81,7 +79,7 @@ class Context:
@property
def worktree(self) -> Path:
return self.home / "worktree"
return self.repo / AUTORUN_WORKTREE
@property
def state_path(self) -> Path: