-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Consumer Priority Group State info and fix pinned TTL (#6081)
This PR introduces few changes & improvements to Pinned Consumers **Fix pinned TTL timer when its assigned from existing waiting request** Until now, we were resetting Pinned TTL only if pin was set on incoming Pull Request, but not when we were pinning an existing waiting request. It also simplifies some logic. **Switch to slice of PriorityGroupState** Previously, we were storing just the pinned IDs, but to be more future-proof, this commit will switch approach to store a struct. It also adds `PinnedTS` which can be useful for debugging pinned consumers. cc @ripienaar @jnmoyne Signed-off-by: Tomasz Pietrek <[email protected]> --------- Signed-off-by: Tomasz Pietrek <[email protected]>
- Loading branch information
Showing
2 changed files
with
118 additions
and
20 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
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