The solution is below (click on post link). The answer to your questions in “Yes it is stateful b/w batches“.