A batch workflow containing a Kafka collection agent will remain in RUNNING running state and wait for more data even if there is no more data to consume. This is a major difference compared to how batch workflows behave for other collection agents which will STOP stop when the data from the last start cycle has been consumed, see Workflow Monitor (4.2) for more inforamtion information about workflow execution states.
...
During other circumstances you can stop it via:
the user interface.
the command line interface Desktop Online
mzcli.
the operational REST interface.
...