We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340b43d commit ea52a7cCopy full SHA for ea52a7c
Producing-Messages.md
@@ -89,6 +89,23 @@ Sidekiq.configure_server do |config|
89
end
90
```
91
92
+### Closing Producer Used in Solid Queue
93
+
94
+```ruby
95
+# config/initializers/solid_queue.rb
96
97
+# This code will close the producer in each worker process
98
+SolidQueue.on_worker_exit do
99
+ ::Karafka.producer.close
100
+end
101
102
+# Below is optional - useful only when publishing events to Kafka
103
+# from the supervisor process
104
+SolidQueue.on_exit do
105
106
107
+```
108
109
### Closing Producer Used in Passenger
110
111
```ruby
0 commit comments