| 21 | const MaxUnknownBuilder = 2 |
| 22 | |
| 23 | // repoChanBuffer sizes the per-repo worker channels. |
| 24 | const 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. |
| 29 | const 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. |
| 36 | const buildShutdownTimeout = 60 * time.Second |
| 37 |
nothing calls this directly
no outgoing calls
no test coverage detected