Moved the run job command

This commit is contained in:
Jaret Burkett
2023-08-13 10:25:56 -06:00
parent 383bad958d
commit 1487d13191
3 changed files with 220 additions and 11 deletions

View File

@@ -33,3 +33,12 @@ def get_job(
# return TrainJob(config)
else:
raise ValueError(f'Unknown job type {job}')
def run_job(
config: Union[str, dict, OrderedDict],
name=None
):
job = get_job(config, name)
job.run()
job.cleanup()