feat(config): Default event worker concurrency to 3 on cloud (#14477)

* feat(config): Default event worker concurrency to 3 on cloud

* Create dirty-pears-smell.md

* fix test
This commit is contained in:
Adrien de Peretti
2026-01-13 09:26:02 +01:00
committed by GitHub
parent 7307a5e63f
commit 55d2a70470
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
feat(config): Default event worker concurrency to 3 on cloud

View File

@@ -1114,6 +1114,9 @@ describe("defineConfig", function () {
"event_bus": {
"options": {
"redisUrl": "redis://localhost:6379",
"workerOptions": {
"concurrency": 3,
},
},
"resolve": "@medusajs/medusa/event-bus-redis",
},
@@ -1338,6 +1341,9 @@ describe("defineConfig", function () {
"event_bus": {
"options": {
"redisUrl": "redis://localhost:6379",
"workerOptions": {
"concurrency": 3,
},
},
"resolve": "@medusajs/medusa/event-bus-redis",
},
@@ -1578,6 +1584,9 @@ describe("defineConfig", function () {
"event_bus": {
"options": {
"redisUrl": "redis://localhost:6379",
"workerOptions": {
"concurrency": 3,
},
},
"resolve": "@medusajs/medusa/event-bus-redis",
},

View File

@@ -271,7 +271,10 @@ function resolveModules(
},
{
resolve: TEMPORARY_REDIS_MODULE_PACKAGE_NAMES[Modules.EVENT_BUS],
options: { redisUrl: process.env.REDIS_URL },
options: {
redisUrl: process.env.REDIS_URL,
workerOptions: { concurrency: 3 },
},
},
{
resolve: MODULE_PACKAGE_NAMES[Modules.LOCKING],