Skip to content

feat(agent): default worker idleTTL to 30m so stale workers get reaped - #580

Merged
sebastiancorrea81 merged 4 commits into
mainfrom
feature/worker-idle-ttl-default
Sep 11, 2026
Merged

feat(agent): default worker idleTTL to 30m so stale workers get reaped#580
sebastiancorrea81 merged 4 commits into
mainfrom
feature/worker-idle-ttl-default

Conversation

@sebastiancorrea81

Copy link
Copy Markdown
Collaborator

Summary

  • nullplatform/agent's worker_defaults now sets idleTTL = "30m" (previously unset, which disables the agent's own worker-idle reaper entirely).
  • Stale 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 custom containers worker image in a POC (packer-builder/containers-endpoint-exposer-poc).
  • Still fully overridable via var.worker.idleTTL, including "" to restore the previous disabled behavior.
  • variables.tf description and the terraform-docs-generated README.md updated to document the new default.

Test plan

  • tofu fmt -check / tofu validate on nullplatform/agent
  • tofu test — 26/26 passing, including 2 new assertions (worker_defaults now also checks idleTTL defaults to 30m; new worker_idle_ttl_override_wins_outright checks var.worker.idleTTL overrides outright, including disabling with "")

🤖 Generated with Claude Code

sebas_correa and others added 2 commits September 10, 2026 21:58
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
@sebastiancorrea81
sebastiancorrea81 enabled auto-merge (squash) September 11, 2026 16:10
@sebastiancorrea81
sebastiancorrea81 merged commit 83aaefb into main Sep 11, 2026
54 checks passed
@sebastiancorrea81
sebastiancorrea81 deleted the feature/worker-idle-ttl-default branch September 11, 2026 16:17
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants