Skip to content

Commit

Permalink
[RLlib] Fix crashing remote envs example (#30562)
Browse files Browse the repository at this point in the history
  • Loading branch information
avnishn authored Nov 23, 2022
1 parent 3c06fb1 commit 805ff74
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 805ff74

Please sign in to comment.