fix(daemon): clone free-space floor is 1 GiB, not 5; clones share the mirror's objects
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 3m17s

This commit is contained in:
sam committed 2026-11-09 09:00:46 +11:00
1 parent 618b22db15
commit 031291a4bf
1 file changed
+4 -2
+4 -2
View File
@@ -305,9 +305,11 @@ func (d *Daemon) Startup(ctx context.Context) error {
const sweepTimeout = 2 * time.Minute
// A clone waits, holding its slot, until the work volume has minCloneSpace
// free, and parks as transient if it does not within diskWaitLimit.
// free, and parks as transient if it does not within diskWaitLimit. Clones
// share objects with the repository's mirror, so the floor covers a checkout
// and its build output, not a full clone.
const (
minCloneSpace = 5 << 30
minCloneSpace = 1 << 30
diskCheckEvery = 15 * time.Second
diskWaitLimit = 10 * time.Minute
)