feat: persistent volumes with TTL for container/worktree storage (archie-core-j7v)
Add [containers].volume_ttl (default 72h). Persistent-storage repos get a per-repo bare Git cache (--reference-if-able --dissociate) so task worktrees clone fast without repeated full network clones, while staying fully independent of the cache's lifecycle — cache expiry can never corrupt an active or parked task's worktree. Docker repo volumes are labeled as Archie-owned and swept non-forced (a volume still attached to a running container survives and retries next cycle); the repo cache directory is swept by mtime. Both cleanups run at daemon startup and each poll cycle. Filed archie-core-756 (repo-wide golangci-lint baseline) and archie-core-340 (intermittent JetStream TempDir teardown flake) as separate follow-ups rather than scope-creeping them into this change.
This commit is contained in:
1 parent
827c108401
commit
e4368f70af
15 files changed
+562
-29
No files matched your search
@@ -69,6 +69,7 @@ gate_max_failures = 5
|
||||
# image = "archie-agent:latest" # Docker image to run
|
||||
# max_concurrency = 4 # max simultaneous tasks/containers
|
||||
# max_uptime = "60m" # container lifetime cap
|
||||
# volume_ttl = "72h" # max age for persistent repo volumes and Git clone caches
|
||||
# pull_policy = "missing" # "missing" or "always"
|
||||
|
||||
[[repos]]
|
||||
@@ -91,3 +92,4 @@ gate = [
|
||||
# FIFO-serializing them; only safe when concurrent worktrees won't collide
|
||||
# (e.g. different base branches or packages per task). Still bounded by
|
||||
# [containers].max_concurrency globally.
|
||||
# persistent_storage = true # reuse a per-repo Docker volume and Git object cache until volume_ttl
|
||||
Reference in new issue
Block a user