File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,13 @@ export abstract class AbstractKafkaConsumer<
112
112
113
113
try {
114
114
const { handlers, ...consumeOptions } = this . options // Handlers cannot be passed to consume method
115
+
116
+ // https://github.com/platformatic/kafka/blob/main/docs/consumer.md#my-consumer-is-not-receiving-any-message-when-the-application-restarts
117
+ await this . consumer . joinGroup ( {
118
+ sessionTimeout : consumeOptions . sessionTimeout ,
119
+ rebalanceTimeout : consumeOptions . rebalanceTimeout ,
120
+ heartbeatInterval : consumeOptions . heartbeatInterval ,
121
+ } )
115
122
this . consumerStream = await this . consumer . consume ( { ...consumeOptions , topics } )
116
123
} catch ( error ) {
117
124
throw new InternalError ( {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @message-queue-toolkit/kafka" ,
3
- "version" : " 0.3.0 " ,
3
+ "version" : " 0.3.1 " ,
4
4
"engines" : {
5
5
"node" : " >= 22.14.0"
6
6
},
You can’t perform that action at this time.
0 commit comments