Skip to content

Commit f0d1950

Browse files
authored
v0.6.21: concurrency FF, blog theme
2 parents 0fdd8ff + 727bb1c commit f0d1950

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

apps/sim/lib/blog/mdx.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ export const mdxComponents: MDXRemoteProps['components'] = {
4444
<p
4545
{...props}
4646
style={{ fontSize: '19px', marginBottom: '1.5rem', fontWeight: '400' }}
47-
className={clsx('text-[var(--text-subtle)] leading-relaxed', props.className)}
47+
className={clsx('text-[var(--landing-text-muted)] leading-relaxed', props.className)}
4848
/>
4949
),
5050
ul: (props: any) => (
5151
<ul
5252
{...props}
5353
style={{ fontSize: '19px', marginBottom: '1rem', fontWeight: '400' }}
5454
className={clsx(
55-
'list-outside list-disc pl-6 text-[var(--text-subtle)] leading-relaxed',
55+
'list-outside list-disc pl-6 text-[var(--landing-text-muted)] leading-relaxed',
5656
props.className
5757
)}
5858
/>
@@ -62,7 +62,7 @@ export const mdxComponents: MDXRemoteProps['components'] = {
6262
{...props}
6363
style={{ fontSize: '19px', marginBottom: '1rem', fontWeight: '400' }}
6464
className={clsx(
65-
'list-outside list-decimal pl-6 text-[var(--text-subtle)] leading-relaxed',
65+
'list-outside list-decimal pl-6 text-[var(--landing-text-muted)] leading-relaxed',
6666
props.className
6767
)}
6868
/>
@@ -140,7 +140,7 @@ export const mdxComponents: MDXRemoteProps['components'] = {
140140
<code
141141
{...props}
142142
className={clsx(
143-
'rounded bg-[var(--surface-4)] px-1.5 py-0.5 font-mono font-normal text-[0.9em] text-[var(--landing-text)]',
143+
'rounded bg-[var(--landing-bg-elevated)] px-1.5 py-0.5 font-mono font-normal text-[0.9em] text-[var(--landing-text)]',
144144
props.className
145145
)}
146146
style={{ fontWeight: 400 }}

apps/sim/lib/core/bullmq/connection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { ConnectionOptions } from 'bullmq'
2-
import { env } from '@/lib/core/config/env'
2+
import { env, isTruthy } from '@/lib/core/config/env'
33

44
export function isBullMQEnabled(): boolean {
5-
return Boolean(env.REDIS_URL)
5+
return isTruthy(env.CONCURRENCY_CONTROL_ENABLED) && Boolean(env.REDIS_URL)
66
}
77

88
export function getBullMQConnectionOptions(): ConnectionOptions {

apps/sim/lib/core/config/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export const env = createEnv({
187187
FREE_PLAN_LOG_RETENTION_DAYS: z.string().optional(), // Log retention days for free plan users
188188

189189
// Admission & Burst Protection
190+
CONCURRENCY_CONTROL_ENABLED: z.string().optional().default('false'), // Set to 'true' to enable BullMQ-based concurrency control (default: inline execution)
190191
ADMISSION_GATE_MAX_INFLIGHT: z.string().optional().default('500'), // Max concurrent in-flight execution requests per pod
191192
DISPATCH_MAX_QUEUE_PER_WORKSPACE: z.string().optional().default('1000'), // Max queued dispatch jobs per workspace
192193
DISPATCH_MAX_QUEUE_GLOBAL: z.string().optional().default('50000'), // Max queued dispatch jobs globally

0 commit comments

Comments
 (0)