AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
fix(server): hardcode worker groups disabled on cloud edition (#16745)
Chaker Atallahc60fcd4ff6a9
diff --git a/packages/server/api/src/app/workers/worker-groups/platform-worker-group.service.ts b/packages/server/api/src/app/workers/worker-groups/platform-worker-group.service.tsindex 7979685be32..c75ea4a5406 100644--- a/packages/server/api/src/app/workers/worker-groups/platform-worker-group.service.ts+++ b/packages/server/api/src/app/workers/worker-groups/platform-worker-group.service.ts@@ -1,15 +1,19 @@import { isNil } from '@activepieces/core-utils'import { apDayjsDuration } from '@activepieces/server-utils'-import { WorkerGroupScope } from '@activepieces/shared'+import { ApEdition, WorkerGroupScope } from '@activepieces/shared'import { FastifyBaseLogger } from 'fastify'import { distributedStore } from '../../database/redis-connections'import { platformPlanRepo } from '../../ee/platform/platform-plan/platform-plan.service'+import { system } from '../../helper/system/system'import { QueueName } from '../job'import { platformQueueMigrationService } from './queue-migration.service'import { workerGroupQueues } from './worker-group-queues'export const platformWorkerGroupService = (log: FastifyBaseLogger) => ({async isWorkerGroupsEnabled({ platformId }: { platformId: string }): Promise<boolean> {+ if (system.getEdition() === ApEdition.CLOUD) {+ return false+ }const cached = await distributedStore.get<string>(getWorkerGroupsEnabledCacheKey(platformId))if (!isNil(cached)) {return cached === 'true'