Skip to content

Commit

Permalink
[RLlib] Fix crashing remote envs example (ray-project#30562)
Browse files Browse the repository at this point in the history
Signed-off-by: Weichen Xu <[email protected]>
  • Loading branch information
avnishn authored and WeichenXu123 committed Dec 19, 2022
1 parent 2a48c8b commit 5cc8388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rllib/evaluation/env_runner_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,8 @@ def end_episode(
raise ValueError(msg)

# Clean up the episode and batch_builder for this env id.
del self._active_episodes[env_id]
if env_id in self._active_episodes:
del self._active_episodes[env_id]

def _try_build_truncated_episode_multi_agent_batch(
self, batch_builder: _PolicyCollectorGroup, episode: EpisodeV2
Expand Down

0 comments on commit 5cc8388

Please sign in to comment.