Repository navigation
Conversation
Add an optional terminationGracePeriodSeconds under each worker's values block (for example retoolos.worker). When unset nothing is rendered and pods keep the Kubernetes default of 30 seconds, so existing installs don't change. The RetoolOS worker needs this to let in-flight agent turns finish during a rollout: its shutdown grace (RETOOLOS_TEMPORAL_WORKER_SHUTDOWN_GRACE_TIME) can only be raised as far as Kubernetes waits before killing the pod. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; the previous zero-value issue is fixed. Reviews (2) · Last reviewed commit: "Keep a worker's terminationGracePeriodSe..." · Reviewed by Greptile |
`with` treats 0 as empty, so the field was dropped and the pod got the 30 s default. Check for the key instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
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.
Problem
Worker pods always get Kubernetes' default 30-second termination grace. The RetoolOS worker needs longer than that to let in-flight agent turns finish during a rollout, but the chart gives no way to raise it.
Fix
retoolos.worker) accepts an optionalterminationGracePeriodSeconds.RETOOLOS_TEMPORAL_WORKER_SHUTDOWN_GRACE_TIME, the worker setting it has to exceed. That setting ships in an upcoming Retool release.Tests
.github/test_worker_termination_grace.pyrenders the chart and checks three cases:🤖 Generated with Claude Code