on_workers_recreated#
- RLlibCallback.on_workers_recreated(*, algorithm: Algorithm, worker_set: EnvRunnerGroup, worker_ids: List[int], is_evaluation: bool, **kwargs: Any) None[source]#
Deprecated. Use
on_env_runners_recreated()instead.RLlib still calls this callback right after
on_env_runners_recreated(), with the same values under the old argument names.- Parameters:
algorithm (Algorithm) – The Algorithm to which the EnvRunnerGroup belongs.
worker_set (EnvRunnerGroup) – The EnvRunnerGroup whose EnvRunners were recreated.
worker_ids (List[int]) – The indices of the recreated EnvRunners.
is_evaluation (bool) – Whether
worker_setis the evaluation EnvRunnerGroup.**kwargs (Any) – Forward compatibility placeholder.