mirror of
https://github.com/wassname/ray.git
synced 2026-08-19 12:30:27 +08:00
Lint Python files with Yapf (#1872)
This commit is contained in:
committed by
Robert Nishihara
parent
a3ddde398c
commit
74162d1492
@@ -99,12 +99,12 @@ class FIFOScheduler(TrialScheduler):
|
||||
|
||||
def choose_trial_to_run(self, trial_runner):
|
||||
for trial in trial_runner.get_trials():
|
||||
if (trial.status == Trial.PENDING and
|
||||
trial_runner.has_resources(trial.resources)):
|
||||
if (trial.status == Trial.PENDING
|
||||
and trial_runner.has_resources(trial.resources)):
|
||||
return trial
|
||||
for trial in trial_runner.get_trials():
|
||||
if (trial.status == Trial.PAUSED and
|
||||
trial_runner.has_resources(trial.resources)):
|
||||
if (trial.status == Trial.PAUSED
|
||||
and trial_runner.has_resources(trial.resources)):
|
||||
return trial
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user