feat(agent): default worker idleTTL to 30m so stale workers get reaped - #580
Merged
Conversation
NP_WORKER_IDLE_TTL was unset by default, which disables the agent's own worker-idle reaper entirely — Deployments left behind by an old or removed package revision accumulate in the cluster forever instead of being cleaned up. Default to "30m"; still fully overridable via var.worker.idleTTL (including "" to restore the previous disabled behavior). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…tl-default # Conflicts: # nullplatform/agent/README.md # nullplatform/agent/locals.tf
agustincelentano
approved these changes
Sep 11, 2026
sebastiancorrea81
enabled auto-merge (squash)
September 11, 2026 16:10
release-application Bot
added a commit
that referenced
this pull request
Sep 11, 2026
🤖 I have created a release *beep* *boop* --- ## [7.9.0](v7.8.1...v7.9.0) (2026-09-11) ### Features * **agent:** default worker idleTTL to 30m so stale workers get reaped ([#580](#580)) ([83aaefb](83aaefb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nullplatform/agent'sworker_defaultsnow setsidleTTL = "30m"(previously unset, which disables the agent's own worker-idle reaper entirely).np-worker-*Deployments left behind by an old or removed package revision were accumulating in the cluster forever instead of being cleaned up — observed firsthand while iterating on a customcontainersworker image in a POC (packer-builder/containers-endpoint-exposer-poc).var.worker.idleTTL, including""to restore the previous disabled behavior.variables.tfdescription and theterraform-docs-generatedREADME.mdupdated to document the new default.Test plan
tofu fmt -check/tofu validateonnullplatform/agenttofu test— 26/26 passing, including 2 new assertions (worker_defaultsnow also checksidleTTLdefaults to30m; newworker_idle_ttl_override_wins_outrightchecksvar.worker.idleTTLoverrides outright, including disabling with"")🤖 Generated with Claude Code