Hey everyone! I have issue with handling async Event Pattern messages from other service, once one event(or event batch) is accepted and is on process, its not accepting any other
`@EventPattern('token.fetchMomentum')
async fetchMomentum(@Payload() data: any, @Ctx() context: KafkaContext) {
const { offset } = context.getMessage();
const partition = context.getPartition();
const topic = context.getTopic();
console.log('GOT EVENT FETCH MOMENTUM');
try {
await this.sleep(10000); // your processing logic here
console.log('GOT EVENT FETCH MOMENTUM NEXT');
return 'YES';
} catch (error) {
console.error(error);
throw error;
}
}`