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

Support custom commands #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yaronthurm
Copy link

Adding support for running custom logic from within the consumer poll loop.
This can be useful in cases when we need to invoke functions on the underlying kafka consumer (e.g. pause), as the consumer has protection against concurrent invocations from different threads and will throw an exception.

Related to #13

Copy link
Member

@evg-tso evg-tso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the README is lacking, but please add the proposed :ketu.source/consumer-commands-chan field under the consumer-source-options section.
Consider adding a usage guide with this addition, what types of items are expected to be in the channel, etc.

src/ketu/async/source.clj Outdated Show resolved Hide resolved
test/ketu/async/integration_test.clj Outdated Show resolved Hide resolved
test/ketu/async/integration_test.clj Outdated Show resolved Hide resolved
test/ketu/async/integration_test.clj Outdated Show resolved Hide resolved
src/ketu/async/source.clj Show resolved Hide resolved
@yaronthurm yaronthurm force-pushed the support-custom-commands branch 3 times, most recently from e307ff6 to 313c38c Compare January 11, 2023 12:37
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