Skip to content

Add back wait_for_stopped_flow#263

Merged
ekerstens merged 1 commit intofaust-streaming:masterfrom
ekerstens:wait_for_stopped_flow
Jan 19, 2022
Merged

Add back wait_for_stopped_flow#263
ekerstens merged 1 commit intofaust-streaming:masterfrom
ekerstens:wait_for_stopped_flow

Conversation

@ekerstens
Copy link
Contributor

Description

There are some use cases for wanting to set a consumer to read from an offset relative to the committed offset, rather than the actual committed offset. This requires stopping the consumer and seeking to the specified offset, but this seek can be overwritten by the else condition of getmany to perform_seek in case the fetcher returns when the consumer is stopped. To mitigate this, I suggest reintroducing the wait_for_stopped_flow method previously introduced to help with the fetcher service race condition. Rather than wait on it explicitly or trying to cancel the fetcher, services can wait for the fetcher to complete normally which shouldn't cause any problems.

@ekerstens ekerstens merged commit 35d6885 into faust-streaming:master Jan 19, 2022
@ekerstens ekerstens deleted the wait_for_stopped_flow branch January 19, 2022 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants