-
Notifications
You must be signed in to change notification settings - Fork 53
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
How to stop a Broadway Kafka pipeline? #86
Comments
@aravindanck how i do this is by starting all my Then when i want to stop them i just call
|
@amacciola Broadway's stop API call that does the same thing I believe. I'm using it to stop the pipeline, but the pipeline gets restarted after a minute automatically. |
@aravindanck this shouldn't happen because we stop the client on the producer shutdown: broadway_kafka/lib/broadway_kafka/producer.ex Lines 515 to 520 in 1eea41e
So you need to debug why that line is not being invoked and the client still sticks around. :) |
Team, I tried Broadway.stop(__ MODULE __) in a broadway_kafka pipeline. But the pipeline gets restarted after a minute by the brod supervisor :brod_sup. The restart strategy is fixed to permanent in brod library (see ref) - could it be the cause? Is there a way I can start my broadway kafka producer with 'restart' arg set to temporary/transient?
Reference: https://github.com/kafka4beam/brod/blob/master/src/brod_sup.erl#L164
The text was updated successfully, but these errors were encountered: