mirror of
https://github.com/wassname/ray.git
synced 2026-07-18 12:40:56 +08:00
[tune] Add on_pause, on_unpause to ConcurrencyLimiter (#10320)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
co-authored by
Richard Liaw
parent
ed3fdd2c0b
commit
87ed20738e
@@ -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