What is the purpose of reward threshold in OpenAI Gym? I've seen that OpenAI Gym environments can be registered with an optional reward threshold (reward_threshold) which represents:


  The reward threshold before the task is considered solved


How does this value affect the learning process? Or does one have to manually compare the reward obtained in each episode with the reward_threshold and stop the learning process if it surpasses it?
I did some digging in the gym codebase, and at least as of v.0.18.0, gym itself doesn't appear to be using reward_threshold at all (as opposed to max_episode_steps, which is used to compute the Done signal when stepping in the environment).
So one would have to manually access this field from the env if they wanted to use it.