espnet3.bin.atlas.command.handle_stop
Less than 1 minute
espnet3.bin.atlas.command.handle_stop
espnet3.bin.atlas.command.handle_stop(args) → int
Request a study stop and mark it stopped in state.
Implements espnet3 atlas stop. Writes a STOP sentinel file the running controller/worker loops check on each iteration, so the study winds down instead of being killed outright. Updating the study’s status is best-effort: if atlas.yaml/state cannot be read (for example the study was never initialized), the STOP file is still written and this still returns 0.
- Parameters:args – Parsed CLI args with
study_dir. - Returns: Always
0. - Return type: int
Example
>>> handle_stop(argparse.Namespace(study_dir="exp/atlas/my_study"))
0