Repository navigation
[rllib] Update learner state warnings to debugs - #60178
Merged
simonsays1980 merged 2 commits intoJan 15, 2026
Merged
Conversation
Signed-off-by: Mark Towers <[email protected]>
pseudo-rnd-thoughts
marked this pull request as ready for review
January 15, 2026 17:22
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes a spammy warning that occurs when the learner state queue is empty in IMPALA/APPO, which is a good change for improving log readability. The use of a try-except-pass block is appropriate for this situation. I have one suggestion to make the explanatory comment more concise and to remove the now-commented-out code.
Signed-off-by: Mark Towers <[email protected]>
simonsays1980
approved these changes
Jan 15, 2026
simonsays1980
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Thanks @pseudo-rnd-thoughts for the quick fix to remove this annoying warning from the printout.
simonsays1980
enabled auto-merge (squash)
January 15, 2026 18:12
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.
Description
Introduced in #59544, we added many optimisations for IMPALA / APPO learner.
One of these optimisations is to minimise the time thread locked from the queue.
Using
queue.get_nowait()will raise an exception if the queue has no data. Therefore, we wrap the request in a try/except.Currently, when this exception occurs then we log a warning but reviewing the training logs this actually causes a massive amount of spam.
This PR, therefore, changes the log from a warning to a debug such that users can still observe if they wish however not by default