feat: make it possible to use subscribers in v2 (#6731)

This commit is contained in:
Sebastian Rindom
2024-03-19 18:31:58 +00:00
committed by GitHub
parent db9c460490
commit 873c21355c
8 changed files with 39 additions and 27 deletions
@@ -296,7 +296,7 @@ describe("RedisEventBusService", () => {
completedSubscriberIds: ["1"],
},
attemptsMade: 2,
update: (data) => data,
updateData: (data) => data,
opts: { attempts: 3 },
})
.catch((err) => void 0)
@@ -197,7 +197,7 @@ export default class RedisEventBusService extends AbstractEventBusModuleService
job.data.completedSubscriberIds = updatedCompletedSubscribers
await job.update(job.data)
await job.updateData(job.data)
const errorMessage = `One or more subscribers of ${eventName} failed. Retrying...`