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:
committed by
GitHub
parent
7307a5e63f
commit
55d2a70470
5
.changeset/dirty-pears-smell.md
Normal file
5
.changeset/dirty-pears-smell.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/utils": patch
|
||||
---
|
||||
|
||||
feat(config): Default event worker concurrency to 3 on cloud
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user