Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back wait_for_stopped_flow #263

Merged
merged 1 commit into from
Jan 19, 2022

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