Stopping Bonsai From Command Line #893
-
Is there a way to stop a Bonsai workflow using the command line interface? I would like to automate data collection by starting and stopping Bonsai workflows with different parameters through the command line interface. Launching the Bonsai workflows and setting externalized properties is fairly straightforward. However, you can't stop the workflow, and I don't know how to create a self-terminating workflow with continuous data source nodes. Using im/taskkill Bonsai.exe seems like a bad idea, so does anyone have any ideas? -Spencer |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Currently, There is no implementation that allows sending a stop command to Bonsai using CLI. Using task-kill might indeed be a bad idea since it will abruptly abort some processes such as saving videos, csv, etc... |
Beta Was this translation helpful? Give feedback.
-
What about inserting an OSC operator that ends the workflow when it receives a message? Then you could launch another workflow from the command line that sends an OSC message before terminating. |
Beta Was this translation helpful? Give feedback.
What about inserting an OSC operator that ends the workflow when it receives a message? Then you could launch another workflow from the command line that sends an OSC message before terminating.