docs: triage issues + revamp troubleshooting guides (#14216)

* docs: triage issues + revamp troubleshooting guides

* small change
This commit is contained in:
Shahed Nasser
2025-12-04 17:12:48 +02:00
committed by GitHub
parent a00bba5cfc
commit e3e3c725db
23 changed files with 126 additions and 69 deletions
@@ -45,7 +45,7 @@ const step1 = createStep(
"step-1",
async ({}, { container }) => {
const eventModuleService = container.resolve(
Modules.EVENT
Modules.EVENT_BUS
)
await eventModuleService.emit({
@@ -8,7 +8,7 @@ export const metadata = {
The Redis Event Module uses Redis to implement Medusa's pub/sub events system.
It's powered by BullMQ and `io-redis`. BullMQ is responsible for the message queue and worker, and `io-redis` is the underlying Redis client that BullMQ connects to for events storage.
It's powered by [BullMQ](https://bullmq.io/) and `io-redis`. BullMQ is responsible for the message queue and worker, and `io-redis` is the underlying Redis client that BullMQ connects to for events storage.
In production, it's recommended to use this module.
@@ -47,6 +47,19 @@ module.exports = defineConfig({
resolve: "@medusajs/medusa/event-bus-redis",
options: {
redisUrl: process.env.EVENTS_REDIS_URL,
// suggested additional options for production use
jobOptions: {
removeOnComplete: {
// keep jobs for 1 hour or up to 1000 jobs
age: 3600,
count: 1000,
},
removeOnFail: {
// keep jobs for 1 hour or up to 1000 jobs
age: 3600,
count: 1000,
}
}
},
},
],