Skip to content

Commit

Permalink
Close pool as final step
Browse files Browse the repository at this point in the history
  • Loading branch information
Rune Daugaard Harlyk authored and runeharlyk committed Jan 8, 2024
1 parent bc681a6 commit 59ce707
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions train_DQLAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def run_episodes(self, max_episode, max_steps):
print(error)
self.exit_program = True
finally:
pool.close()
pool.join()
return []

def run_episode(self, episode, max_steps, pool):
Expand Down

0 comments on commit 59ce707

Please sign in to comment.