Skip to content

Managing submissions

Before submitting a sample you need the workflow registered, and the target environment enabled with an engine and a processing queue. The parameters file can be JSON or YAML.

Terminal window
geni submission list

Use --help to see the filtering and sorting options — by provider, status, workflow, date range, environment, engine, queue or tag.

Terminal window
geni submission list --today --status failed
geni submission list --workflow wgs-germline --sort-by duration --sort-order desc

First find the engine and queue available in the target environment:

Terminal window
geni engine list
geni queue list

Then submit:

Terminal window
geni submission create \
--workflow-name <workflow-name> \
--workflow-version <workflow-version> \
--params-file <path to a JSON or YAML file> \
--engine-id <engine-id> \
--queue-id <queue-id> \
--fallback-queue-id <fallback-queue-id> \
--output-folder <path to a folder in a bucket>

--workflow-version is optional; without it the latest version is used. Always set it explicitly for production runs.

The input parameters file must be on your computer — the CLI uploads it to GENI.

The engine and queue must both be active and belong to the same environment. The engine needs read permission on every bucket holding input files, and write permission on the bucket named in --output-folder.

Use --cancel-time DD:HH:MM to cap the runtime of this submission. It overrides whatever the workflow version configures.

Use --tag key=value to label the submission. See Tagging.

Pass --fallback-queue-id with an on-demand queue. If a job fails for spot-capacity reasons, Nextflow runs it again on the fallback queue.

Terminal window
geni submission cancel <submission-id>

GENI stops the Nextflow process and terminates every Batch job belonging to the submission.

Terminal window
geni submission retry <submission-id>

Optionally target a different engine or queue, or resume from the previous run’s work directory:

Terminal window
geni submission retry <submission-id> --queue-id <ondemand-queue-id> --resume

Nextflow logs for a submission:

Terminal window
geni submission logs <submission-id>
geni submission logs <submission-id> --follow

The tasks of a submission — add --status failed to see only the failures:

Terminal window
geni task list --submission-id <submission-id>
geni task list --submission-id <submission-id> --status failed

Logs of one task:

Terminal window
geni task logs <task-id>

Filter by tag, and show another tag as a column:

Terminal window
geni task list --tag <key1>=<value1> --show-tag <key2>

Every list command accepts --format, which takes table (the default), csv or json.

Terminal window
geni submission list --today --format csv > runs.csv