Component evidence
Defines concurrency limits, retry policies, and execution budgets for workflow scheduling. Use this to manage resource allocation and infrastructure stability in task queues.
// Source: https://github.com/simstudioai/sim | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { env, envNumber } from '@/lib/core/config/env'
export const SCHEDULE_EXECUTION_QUEUE_NAME = 'schedule-execution'
export const SCHEDULE_EXECUTION_CONCURRENCY_LIMIT = envNumber(
env.SCHEDULE_EXECUTION_CONCURRENCY_LIMIT,
30,
{ min: 1, integer: true }
)
export const SCHEDULE_ENQUEUE_BUDGET_MULTIPLIER = envNumber(
env.SCHEDULE_ENQUEUE_BUDGET_MULTIPLIER,
2,
{ min: 1, integer: true }
)
export const SCHEDULE_WORKFLOW_ENQUEUE_LIMIT =
SCHEDULE_EXECUTION_CONCURRENCY_LIMIT * SCHEDULE_ENQUEUE_BUDGET_MULTIPLIER
export const SCHEDULE_JITTER_MAX_MS = envNumber(env.SCHEDULE_JITT
... (truncated -- full source via MCP)