A batch workflow containing a Kafka collection agent will remain in running state and wait waiting 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 when the data from the last start cycle has been consumed, see Workflow Monitor for more information about workflow execution states.
Note!
A batch will not be completed if:
the configured Batch Size has not been reached
ora hardcoded timeout of five ( 5 ) seconds has not been reached.
...
Desktop Online
mzcli.
the operational REST interface.
Note!
The 5-second timeout for completing a batch also applies when stopping a Kafka batch collection workflow through these interfaces.
...