To control the status of a flow via CLI, instead of the usual browser interface, perform the following –
- Open a Spawner container
docker exec -ti spawner-robot1 bash
- Type/Call the following Python script –
For example, named "myflow.flo").
from API2.Robot import Robot r = Robot() r.send_cmd("START", flow="myflow")
from API2.Robot import Robot r = Robot() active_flow = r.Status["active_flow"] r.send_cmd("STOP", flow=active_flow)
Updated over 1 year ago