Repository navigation
simplify agent registration - #3018
Merged
Merged
Conversation
paulwe
commented
Sep 18, 2024
|
|
||
| var _ WorkerSignalHandler = (*WorkerRegisterer)(nil) | ||
|
|
||
| type WorkerRegisterer struct { |
Contributor
Author
There was a problem hiding this comment.
decoupling agent registration from the rest of the message handling allows us to defer choosing how to handle the worker until after we know what types of jobs it can handle. it also allows us to use a simple ws read deadline for registration timeout...
cnderrauber
approved these changes
Sep 18, 2024
boks1971
approved these changes
Sep 18, 2024
josephkieu
reviewed
Oct 10, 2024
| for _, w := range workers { | ||
| if _, ok := ignore[w]; !ok && w.Status() == livekit.WorkerStatus_WS_AVAILABLE { | ||
| normalizedLoads[w] = normalizeLoad(w.Load()) | ||
| normalizedLoads[w] = max(0, 1-w.Load()) |
There was a problem hiding this comment.
This modification might be the cause of the issue we encountered. Can you please check?
livekit/agents#884
from agents, we implemented a load function / threshold that can return the value bigger than 1 for a long time. Recently, we've been encountering a lot of issues related to agents not receiving messages when rooms are created. We suspect this is the cause.
This was referenced Sep 22, 2026
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.
No description provided.