chore: group & release events for local eventbus (#7649)

* chore: stage & release events for local eventbus

* chore: address review

* chore: mock emitter correctly
This commit is contained in:
Riqwan Thamir
2024-06-07 15:31:16 +02:00
committed by GitHub
parent c9c2b6c88f
commit fbb00f3863
5 changed files with 237 additions and 71 deletions
@@ -140,6 +140,10 @@ export default class RedisEventBusService extends AbstractEventBusModuleService
await this.queue_.addBulk(events)
}
// TODO: Implement redis based staging + release
async releaseGroupedEvents(eventGroupId: string) {}
async clearGroupedEvents(eventGroupId: string) {}
/**
* Handles incoming jobs.
* @param job The job object