Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ChainRunner (facebook#1869)
Summary: Implements ChainRunner, which takes List[ChainRunnerStage] and runs the stages in sequence for each trial. High-level logic is as follows: * `ChainRunner.run` kicks off the first ChainRunnerStage in the list and records that stage's name in the trial's run_metadata. * `ChainRunner.poll_trial_status` polls the current stage's runner's status. If this is `TrialStatus.COMPLETED` and there are more stages left in the chain, ChainRunner kicks off the next stage in the chain, updating the run_metadata in the process. In the future this should be implemented such that this state management happens in the calling context (e.g., Scheduler, AxClient). Differential Revision: D47484883
- Loading branch information