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
  • Loading branch information
marcosschroh committed Dec 19, 2023
1 parent 73819c2 commit 31b2742
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

Check warning on line 254 in kstreams/streams.py

View check run for this annotation

Codecov / codecov/patch

kstreams/streams.py#L254

Added line #L254 was not covered by tests
except Exception as e:
logger.exception(f"CRASHED Stream!!! Task {self._consumer_task} \n\n {e}")

Expand Down

0 comments on commit 31b2742

Please sign in to comment.