-
Notifications
You must be signed in to change notification settings - Fork 880
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add periodic refresh back to per-namespace worker manager (#7105)
## What changed? - Add periodic refresh back to `perNamespaceWorkerManager` - Pass full `refreshArgs` to `getWorkerAllocation` and use `ns` from `args` - Rename fields in `workerAllocation` - Small optimization to building the component set + options string ## Why? - The dynamic config subscriptions only reacted to the two settings directly used by `perNamespaceWorkerManager`, not the enabled/disabled settings in components. - `getWorkerAllocation`/`getLocallyDesiredWorkers` was reading `w.ns` which is technically a data race since `w` is not locked there. - The fields are not used outside the package. ## How did you test it? existing tests
- Loading branch information
Showing
1 changed file
with
44 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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