[tune] remove some bottlenecks in trialrunner (#12476)

This commit is contained in:
Richard Liaw
2020-11-30 14:54:25 -08:00
committed by GitHub
parent f5fe3794c8
commit 9ce7ad17fd
8 changed files with 45 additions and 17 deletions
@@ -36,6 +36,9 @@ def create_mock_components():
class TrialRunnerTest2(unittest.TestCase):
def setUp(self):
os.environ["TUNE_STATE_REFRESH_PERIOD"] = "0.1"
def tearDown(self):
ray.shutdown()
_register_all() # re-register the evicted objects