Skip to content

Commit

Permalink
fix errors in seek when flow is not active (faust-streaming#264)
Browse files Browse the repository at this point in the history
* fix errors in seek when flow is not active

* fix errors in seek when flow is not active

* Revert "fix errors in seek when flow is not active"

This reverts commit c3fadfb.
  • Loading branch information
patkivikram authored Feb 4, 2022
1 parent b5e7ce8 commit a313821
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion faust/transport/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,10 @@ async def getmany(self, timeout: float) -> AsyncIterator[Tuple[TP, Message]]:
self.log.dev(
"getmany called while flow not active. Seek back to committed offsets."
)
await self.perform_seek()
try:
await self.perform_seek()
except Exception as ex:
self.log.warning(f"exception performing seek when flow not active {ex}")

async def _wait_next_records(
self, timeout: float
Expand Down

0 comments on commit a313821

Please sign in to comment.