mirror of
https://github.com/wassname/ray.git
synced 2026-08-15 12:45:23 +08:00
[tune] Prevent deletion of checkpoint from user-initiated resto… (#7501)
* Fix restore bug * Add test * Lint * Indent
This commit is contained in:
@@ -239,7 +239,6 @@ class TrialRunnerTest2(unittest.TestCase):
|
||||
runner.step() # Start trial
|
||||
self.assertEqual(trials[0].status, Trial.RUNNING)
|
||||
self.assertEqual(ray.get(trials[0].runner.set_info.remote(1)), 1)
|
||||
# checkpoint = runner.trial_executor.save(trials[0])
|
||||
runner.step() # Process result, dispatch save
|
||||
runner.step() # Process save
|
||||
runner.trial_executor.stop_trial(trials[0])
|
||||
|
||||
Reference in New Issue
Block a user