Download

Launching Flows via CLI

To control the status of a flow via CLI, instead of the usual browser interface, perform the following –

  1. Open a Spawner container docker exec -ti spawner-robot1 bash
  2. Type/Call the following Python script –

Launching a Flow

For example, named "myflow.flo").

from API2.Robot import Robot
r = Robot()
r.send_cmd("START", flow="myflow")

Stopping an Active Flow

from API2.Robot import Robot
r = Robot()
active_flow = r.Status["active_flow"]
r.send_cmd("STOP", flow=active_flow)