perf: Implement worker threads for getAvailableSlots to prevent CPU blocking (#21479)

* Implement worker threads for getAvailableSlots to prevent CPU blocking

Co-Authored-By: [email protected] <[email protected]>

* fix: resolve TypeScript errors in worker implementation

Co-Authored-By: [email protected] <[email protected]>

* chore: fix slot-worker-service.ts

* fix: do not use workers in E2E

* fix: try to fix memory leak

* chore: remove unecessary comments

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Morgan <[email protected]>
Co-authored-by: cal.com <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-06-12 11:56:13 +00:00
1 parent 34beadeef6
commit 2aaf672b10
7 files changed
+257 -14

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ const env: Partial<Omit<Environment, "NODE_ENV">> = {
REDIS_URL: "redis://localhost:6379",
STRIPE_API_KEY: "sk_test_51J4",
STRIPE_WEBHOOK_SECRET: "whsec_51J4",
IS_E2E: true,
IS_E2E: "true",
API_KEY_PREFIX: "cal_test_",
GET_LICENSE_KEY_URL: " https://console.cal.com/api/license",
CALCOM_LICENSE_KEY: "c4234812-12ab-42s6-a1e3-55bedd4a5bb7",