MCPcopy Create free account
hub / github.com/an0nfunc/ALHP / BuildManager

Struct BuildManager

buildmanager.go:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21const MaxUnknownBuilder = 2
22
23// repoChanBuffer sizes the per-repo worker channels.
24const repoChanBuffer = 1000
25
26// maxIsolationFailures aborts a queue pass once the netns helper is persistently
27// broken, so a host-wide fault stops the cycle instead of re-cloning every package
28// from upstream forever.
29const maxIsolationFailures = 5
30
31// buildShutdownTimeout bounds how long shutdown waits for in-flight builds to
32// run their own cleanup. It has to stay comfortably under the unit's
33// TimeoutStopSec, since overrunning that trades a few orphaned directories for a
34// SIGKILL that orphans all of them. Removing a handful of chroot copies is
35// seconds of work, so this is a backstop against a wedged rm, not a budget.
36const buildShutdownTimeout = 60 * time.Second
37

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected