Skip to content

Commit

Permalink
[RLlib] minor bug fix. Resetted exceptions are saved under env_id key. (
Browse files Browse the repository at this point in the history
ray-project#30183)

Signed-off-by: Jun Gong <jungong@anyscale.com>
Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
  • Loading branch information
Jun Gong authored and WeichenXu123 committed Dec 19, 2022
1 parent 51329b1 commit 922a1af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rllib/evaluation/env_runner_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,9 @@ def _handle_done_episode(
resetted_obs: Dict[
EnvID, Dict[AgentID, EnvObsType]
] = self._base_env.try_reset(env_id)
if resetted_obs is None or not isinstance(resetted_obs, Exception):
if resetted_obs is None or not isinstance(
resetted_obs[env_id], Exception
):
break
else:
# Report a faulty episode.
Expand Down

0 comments on commit 922a1af

Please sign in to comment.