mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 04:27:27 +08:00
[tune] Add on_pause, on_unpause to ConcurrencyLimiter (#10320)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
@@ -304,3 +304,9 @@ class ConcurrencyLimiter(Searcher):
|
||||
|
||||
def set_state(self, state):
|
||||
self.__dict__.update(state)
|
||||
|
||||
def on_pause(self, trial_id):
|
||||
self.searcher.on_pause(trial_id)
|
||||
|
||||
def on_unpause(self, trial_id):
|
||||
self.searcher.on_unpause(trial_id)
|
||||
|
||||
Reference in New Issue
Block a user