From b58cc909124ab9ba369c80da38e6f7fde85c0c17 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 7 Aug 2026 05:06:35 -0300 Subject: [PATCH] ci: cap the warm agent at one and shorten its idle time Keeping the pod alive for an hour left two idle demo agents holding slots in a pool of five. That starves real CI, and would eventually starve this demo too by leaving nothing free when a build actually needs to run. Fifteen minutes covers a demo session - a warm-up run and then the real one - without parking capacity overnight for nobody, and instanceCap stops a second agent existing at all. Co-Authored-By: Claude Opus 5 --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 501784e..f0b5d37 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,13 @@ podTemplate( // template mints a random POD_LABEL per build, so every build necessarily // got a fresh pod. label: 'hermes-code-demo-agent', - idleMinutes: 60, + // Short, and capped at one. An earlier hour of idle time meant two warm + // agents sat holding slots in a pool of five, which starves real CI and + // would eventually starve this demo too. Fifteen minutes covers a demo + // session - warm-up run, then the real one - without parking capacity + // overnight for nobody. + idleMinutes: 15, + instanceCap: 1, yaml: """ apiVersion: v1 kind: Pod