The KSCOMMIT function request a commit of offsets. The commit will happen asynchronously. This may be useful to force commit of offsets on top of the periodic commit defined by commit.interval.ms.

This function can only be called within a processor, during the execution of the init, process or close macro or during the execution of a punctuation macro.