@cap-js-community/event-queue 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/runner/runner.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-js-community/event-queue",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "An event queue that enables secure transactional processing of asynchronous and periodic events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
package/src/runner/runner.js
CHANGED
|
@@ -142,7 +142,8 @@ const _executeEventsAllTenantsRedis = async (tenantIds) => {
|
|
|
142
142
|
if (!entries.length) {
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
// Do not wait until this is finished - as broadcastEvent has a retry mechanism and can delay this loop
|
|
146
|
+
redisPub.broadcastEvent(tenantId, entries).catch((err) => {
|
|
146
147
|
logger.error("broadcasting event failed", err, {
|
|
147
148
|
tenantId,
|
|
148
149
|
entries: entries.length,
|