ray.tune.schedulers.TrialScheduler.choose_trial_to_run#

TrialScheduler.choose_trial_to_run(tune_controller: TuneController) Trial | None[source]#

Called to choose a new trial to run.

This should return one of the trials in tune_controller that is in the PENDING or PAUSED state. This function must be idempotent.

If no trial is ready, return None.