Skip to content

PolicyLossRegistry.get() causes "blocking ray.get inside async actor" log warnings #1485

@jamesbraza

Description

@jamesbraza

SkyRL v0.1.0 workers lead to ray==2.51.1 emitting this warning during initialization once per worker process:

Using blocking ray.get inside async actor. This blocks the event loop. Please use `await` on object ref with asyncio.gather if you want to yield execution to the event loop instead.

This happens due to a blocking sync get here: https://github.com/NovaSky-AI/SkyRL/blob/skyrl-v0.1.0/skyrl/backends/skyrl_train/utils/ppo_utils.py#L257

Any chance SkyRL can clean this up in PolicyWorkerBase, to avoid these extra warnings in logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions