Skip to content

qruise flow list

List flows.

Syntax

qruise flow list [OPTIONS]

Description

The qruise flow list command lists all flows avaliable in QruiseOS regardless of the QPU, scheduling status, or the method used to run them. The result is a tabular list of flow names and their identifiers.

Options

Option Description
--no-headers Do not display the header row in the output.
--help Show a help message and exit.

Examples

Listing all flows

To list all the flows avaialable in your QruiseOS instance, run the command without any parameters:

$ qruise flow list

 Name                       ID
 sc-daily-calibration       ee165cf5-60ce-4a51-a473-6183228e39ab
 sc-long-experiments        b6ed3d68-b5a1-4f34-831e-39dc8094ee73
 experimental-setup         d63d0327-481e-4b10-8530-429c16635375

Usage in scripts

The qruise flow list command can be used in conjunction with other commands from the qruise flow family and standard command-line tools. To make processing of the output easier in scripts, you can use the --no-headers flag, which hides the table header row in the output:

$ qruise flow list --no-headers

 sc-daily-calibration       ee165cf5-60ce-4a51-a473-6183228e39ab
 sc-long-experiments        b6ed3d68-b5a1-4f34-831e-39dc8094ee73
 experimental-setup         d63d0327-481e-4b10-8530-429c16635375

As a result, the output can easily be processed by pipelining. For instance, to remove all flows you could simply run the following command:

qruise flow list --no-headers | awk '{print $2}' | xargs qruise flow remove