Skip to content

Commit e861bef

Browse files
authored
Merge pull request #28 from rh-marketingops/fix-multi-msg-app
tiny fix to multi-msg-app
2 parents 48c44eb + df0493a commit e861bef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fluvii/fluvii_app/fluvii_multi_msg_app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ def _handle_message(self, **kwargs):
1616

1717
def _finalize_app_batch(self):
1818
# Do it at the end of consuming instead!
19-
self._app_function(self.transaction, *self._app_function_arglist)
19+
if self.transaction.messages():
20+
self._app_function(self.transaction, *self._app_function_arglist)
2021
super()._finalize_app_batch()

0 commit comments

Comments
 (0)