Skip to content

[rllib] Update learner state warnings to debugs - #60178

Merged
simonsays1980 merged 2 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:reduce-logging-spam
Jan 15, 2026
Merged

simonsays1980 merged 2 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:reduce-logging-spam

Conversation

@pseudo-rnd-thoughts

@pseudo-rnd-thoughts pseudo-rnd-thoughts commented Jan 15, 2026 •

Copy link
Copy Markdown
Member

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

@pseudo-rnd-thoughts
pseudo-rnd-thoughts marked this pull request as ready for review January 15, 2026 17:22
@pseudo-rnd-thoughts
pseudo-rnd-thoughts requested a review from a team as a code owner January 15, 2026 17:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@pseudo-rnd-thoughts pseudo-rnd-thoughts changed the title [rllib] Remove learner state warnings [rllib] Update learner state warnings to debugs Jan 15, 2026
@pseudo-rnd-thoughts pseudo-rnd-thoughts added rllib RLlib related issues go add ONLY when ready to merge, run all tests labels Jan 15, 2026

@simonsays1980 simonsays1980 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @pseudo-rnd-thoughts for the quick fix to remove this annoying warning from the printout.

@simonsays1980
simonsays1980 enabled auto-merge (squash) January 15, 2026 18:12
@simonsays1980
simonsays1980 merged commit fffde7e into ray-project:master Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests rllib RLlib related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants