chore: enable/disable slots workers via env (#26621)

* chore: enable/disable slots workers via env

* fix: address Cubic AI review feedback

- Fix incorrect JSDoc comment for getSerializableContext method
- Remove debug console.log statement from slots controller
- Fix port suffix condition to preserve original behavior

Co-Authored-By: unknown <>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-01-09 15:03:13 +00:00
1 parent 87a2f855f8
commit 8666efa29d
6 files changed
+125 -81

No files matched your search

+6 -1
View File
@@ -1,3 +1,6 @@
/** biome-ignore-all lint/correctness/noProcessGlobal: e2e file */
/** biome-ignore-all lint/suspicious/noTsIgnore: e2e file */
/** biome-ignore-all lint/style/noProcessEnv: e2e file */
import type { Environment } from "@/env";
import "dotenv/config";
@@ -22,6 +25,8 @@ const env: Partial<Omit<Environment, "NODE_ENV">> = {
RATE_LIMIT_DEFAULT_LIMIT: 10000,
RATE_LIMIT_DEFAULT_BLOCK_DURATION_MS: 60000,
IS_TEAM_BILLING_ENABLED: false,
ENABLE_SLOTS_WORKERS: "false",
SLOTS_WORKER_POOL_SIZE: "0",
};
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -36,5 +41,5 @@ process.env = {
CALENDSO_ENCRYPTION_KEY: "22gfxhWUlcKliUeXcu8xNah2+HP/29ZX",
INTEGRATION_TEST_MODE: "true",
e2e: "true",
SLOTS_CACHE_TTL: "1"
SLOTS_CACHE_TTL: "1",
};