Skip to content

Commit

Permalink
fix(Stream): handle errors.ConsumerStoppedError exception for the new…
Browse files Browse the repository at this point in the history
… consumtion way (#150)
  • Loading branch information
marcosschroh authored Dec 19, 2023
1 parent 73819c2 commit 2baf6d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kstreams/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ async def func_wrapper_with_typing(self, calling_type: UDFType) -> None:
else:
# typing with cr and stream
await self.func(cr, self)
except errors.ConsumerStoppedError:
return
except Exception as e:
logger.exception(f"CRASHED Stream!!! Task {self._consumer_task} \n\n {e}")

Expand Down

0 comments on commit 2baf6d3

Please sign in to comment.