lightsoutAlpha

lightsout stop

Stop a run in progress from any terminal. It can be resumed later.

When to reach for it

Use it on a detached run, or any run whose launching terminal you cannot reach. Any run id of its family works, the short id a report printed included. The engine is asked to shut down first, which stops its own agents and gates; if it is still running after ten seconds it is killed outright, its agents may remain, and you must make sure no agent is still working in the run’s worktree before you resume it. A queue worker’s run lives inside the queue’s process, so it is stopped by stopping its queue. Stopping a run that has nothing running behind it is not an error. After a clean stop, resume the run with the command the stop prints. It needs macOS or Linux, and refuses on Windows. It exits 0 after a clean stop or when nothing was running, and 1 when the engine had to be killed, its pid now belongs to another process, or the stop was refused.

How to run it

  • lightsout stop --run <id>
--run <id>
The run to stop: any run of its family, short id included.Required
--cwd <path>
Repository the run belongs to.Left out: The process working directory.

Related commands