mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
Allow auto topic creation in consumer (#8529)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -204,7 +204,10 @@ class PlatformQueueConsumerImpl implements ConsumerHandle {
|
||||
fromBegining?: boolean
|
||||
}
|
||||
) {
|
||||
this.cc = this.kafka.consumer({ groupId: `${getKafkaTopicId(this.topic, this.config)}-${groupId}` })
|
||||
this.cc = this.kafka.consumer({
|
||||
groupId: `${getKafkaTopicId(this.topic, this.config)}-${groupId}`,
|
||||
allowAutoTopicCreation: true
|
||||
})
|
||||
|
||||
void this.start().catch((err) => {
|
||||
ctx.error('failed to consume', { err })
|
||||
|
||||
Reference in New Issue
Block a user