You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
omit DescribeVersion API calls for drained versions (#229)
## Summary
- Switch `GetWorkerDeploymentState` from the SDK's `Describe()` to the
gRPC `DescribeWorkerDeployment` API, which returns full `DrainageInfo`
(including `DrainedSince` timestamps) in the version summaries
- Eliminate per-version `DescribeVersion` calls for obtaining drainage
timestamps — read them directly from the gRPC summary
- Additionally, change/alter the constraint surrounding drained versions
that are considered eligible to be deleted by the server from the
worker-controller's pov.
## Test plan
- [ ] Verify existing unit tests pass (`go test
./internal/temporal/...`)
- [ ] Verify integration tests pass (`go test ./internal/tests/...`)
- [ ] Verify `DrainedSince` is correctly populated from the gRPC summary
- [ ] Verify `NoTaskQueuesHaveVersionedPoller` still works for drained
versions with k8s Deployments at 0 replicas
- [ ] Verify drained versions without k8s Deployments no longer trigger
`DescribeVersion` calls
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments