mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-10 17:30:51 +00:00
Allow auto topic creation in consumer (#8529)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
bc5a88ca80
commit
fb8ce8ad65
@ -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 })
|
||||
|
Loading…
Reference in New Issue
Block a user