Events in Redis do not trigger subscribers - I do not see any logging coming out of them (using Logger as described in the documentation) nor any expected behaviour implemented in the handlers like sending emails.
System information
Medusa version (including plugins): 1.20.2
"@medusajs/cache-redis": "1.9.1",
"@medusajs/event-bus-redis": "1.8.13",
Node.js version: v20.13.1
Database: PostgreSQL
Operating system: Linux
Browser (if relevant):
Steps to reproduce the behavior
Setup redis event bus with Medusa
Create NotificationProvider and loader to subscribe the notifications to the events as noted in the code snippets
create an order or shipment or refund
Expected behavior
I expect the loader to have subscribed to the events and when triggering any event run the sendNotification() function of the notification service
Screenshots
RedisInsight showing that events are indeed being registered in redis so redis configuration and integration with medusa seems to be fine
Bug report
Describe the bug
Events in Redis do not trigger subscribers - I do not see any logging coming out of them (using Logger as described in the documentation) nor any expected behaviour implemented in the handlers like sending emails.
System information
Medusa version (including plugins): 1.20.2 "@medusajs/cache-redis": "1.9.1", "@medusajs/event-bus-redis": "1.8.13", Node.js version: v20.13.1 Database: PostgreSQL Operating system: Linux Browser (if relevant):
Steps to reproduce the behavior
Expected behavior
I expect the loader to have subscribed to the events and when triggering any event run the sendNotification() function of the notification service
Screenshots
RedisInsight showing that events are indeed being registered in redis so redis configuration and integration with medusa seems to be fine
Code snippets
src/loaders/notification.ts
src/services/email-sender.ts
Additional context
The provider exists in the database but the notification table is empty.
Things I have tried while troubleshooting and didn't help/work:
medusa-plugin-resend
- seems to be using subscribers similar tomedusa-plugin-sendgrid
which causes issues #5969