cli¶
The command line of simrun: submit, follow and compare runs.
Every command prints the detail of a refusal of the service to stderr and exits 1;
--json prints machine-readable JSON instead of tables.
submit
¶
submit(
workflow,
source=None,
group=None,
single_server=False,
reserve=None,
local=False,
docker=False,
snapshot=False,
wait_=None,
timeout=None,
as_json=False,
)
Snapshot the sources and submit a workflow.
wait
¶
Wait for a run to end; exit 0 if it succeeded, 1 if not, 2 on timeout.
outputs
¶
List the output files of a task, or extract them with --to.
list_
¶
List runs.
compare
¶
Compare the provenance and the summaries of runs.
estimate
¶
Show the plan and the expected duration of every task of a submission.
cleanup
¶
Remove ended runs and the snapshots nothing refers to.
edit
¶
Serve the Editor of the web app for a workflow file until stopped.
Saves of the browser are written into the file, a run snapshots the sources again. A missing file is a new workflow. Ctrl-C closes the session and exits, a second Ctrl-C exits without waiting for the close. With --local the session is on the local service of the current directory.
serve
¶
Run the service until stopped.
With --local the service of the current directory with the local backend: the
tasks run as processes on this machine, Ctrl-C cancels the runs; exit 3 when
the service of the directory runs already. --stop stops it instead. Without,
the service of the settings named by SIMRUN_CONFIG, as
uvicorn --factory simrun.service.app:serve runs it.