espnet3.bin.atlas.command.handle_run
espnet3.bin.atlas.command.handle_run
espnet3.bin.atlas.command.handle_run(args) → int
Run a study’s controller: the process that ticks the scheduler.
Implements espnet3 atlas run. A tick runs the local graph nodes, submits trial jobs, notices dead jobs and checks the budget. Trial jobs start the next trial themselves when they finish, but only a controller notices a job that died. Where it runs is set by atlas.submission.controller.run_in:
local(default): this process is the controller and loops until the study is done (run it in tmux on a login node).queue: submit the controller as a tick job through_ensure_tick_joband return. The job runs this command with--job-id, which marks the process as that tick job, so it loops instead of submitting again.Parameters:args – Parsed CLI args with
study_dir,recipe_dir,poll_interval, andjob_id(set only for a tick job).Returns: Always
0, except that unhandled exceptions from the worker path propagate after marking the job"failed".Return type: int
Example
>>> handle_run(argparse.Namespace(
... study_dir="exp/atlas/s", recipe_dir=".", poll_interval=None,
... job_id=None,
... ))
0