惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
宝玉的分享
宝玉的分享
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
Jina AI
Jina AI
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: raise default cron concurrency · openclaw/openclaw@b...
steipete · 2026-05-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai

66
77

### Changes

88
9+

- Cron: default `cron.maxConcurrentRuns` to 8 so scheduled automations and their isolated agent turns can make progress in parallel without explicit configuration.

910

- QA-Lab: add `qa coverage --match <query>` so focused proof selection can discover matching scenarios from existing metadata before running live or remote lanes.

1011

- Control UI: add an ephemeral Activity tab for sanitized live tool activity summaries without persisting raw telemetry. Fixes #12831. Thanks @BunsDev.

1112

- Build: include `ui:build` in the `full` and `ciArtifacts` profiles of `scripts/build-all.mjs` so `pnpm build` always rebuilds `dist/control-ui` after `tsdown` cleans `dist`, removing the second-command requirement and the missing-asset failure mode for source/runtime installs and CI artifact uploads. (#85206)

Original file line numberDiff line numberDiff line change

@@ -436,7 +436,7 @@ Model override note:

436436

cron: {

437437

enabled: true,

438438

store: "~/.openclaw/cron/jobs.json",

439-

maxConcurrentRuns: 1,

439+

maxConcurrentRuns: 8,

440440

retry: {

441441

maxAttempts: 3,

442442

backoffMs: [60000, 120000, 300000],

@@ -449,7 +449,7 @@ Model override note:

449449

}

450450

```

451451
452-

`maxConcurrentRuns` limits both scheduled cron dispatch and isolated agent-turn execution. Isolated cron agent turns use the queue's dedicated `cron-nested` execution lane internally, so raising this value lets independent cron LLM runs progress in parallel instead of only starting their outer cron wrappers. The shared non-cron `nested` lane is not widened by this setting.

452+

`maxConcurrentRuns` limits both scheduled cron dispatch and isolated agent-turn execution, and defaults to 8. Isolated cron agent turns use the queue's dedicated `cron-nested` execution lane internally, so raising this value lets independent cron LLM runs progress in parallel instead of only starting their outer cron wrappers. The shared non-cron `nested` lane is not widened by this setting.

453453
454454

The runtime state sidecar is derived from `cron.store`: a `.json` store such as `~/clawd/cron/jobs.json` uses `~/clawd/cron/jobs-state.json`, while a store path without a `.json` suffix appends `-state.json`.

455455
Original file line numberDiff line numberDiff line change

@@ -385,7 +385,7 @@ Save to `~/.openclaw/openclaw.json` and you can DM the bot from that number.

385385

cron: {

386386

enabled: true,

387387

store: "~/.openclaw/cron/cron.json",

388-

maxConcurrentRuns: 2, // cron dispatch + isolated cron agent-turn execution

388+

maxConcurrentRuns: 8, // default; cron dispatch + isolated cron agent-turn execution

389389

sessionRetention: "24h",

390390

runLog: {

391391

maxBytes: "2mb",

Original file line numberDiff line numberDiff line change

@@ -1240,7 +1240,7 @@ Current builds no longer include the TCP bridge. Nodes connect over the Gateway

12401240

{

12411241

cron: {

12421242

enabled: true,

1243-

maxConcurrentRuns: 2, // cron dispatch + isolated cron agent-turn execution

1243+

maxConcurrentRuns: 8, // default; cron dispatch + isolated cron agent-turn execution

12441244

webhook: "https://example.invalid/legacy", // deprecated fallback for stored notify:true jobs

12451245

webhookToken: "replace-with-dedicated-token", // optional bearer token for outbound webhook auth

12461246

sessionRetention: "24h", // duration string or false

Original file line numberDiff line numberDiff line change

@@ -419,7 +419,7 @@ candidate contains redacted secret placeholders such as `***`.

419419

{

420420

cron: {

421421

enabled: true,

422-

maxConcurrentRuns: 2, // cron dispatch + isolated cron agent-turn execution

422+

maxConcurrentRuns: 8, // default; cron dispatch + isolated cron agent-turn execution

423423

sessionRetention: "24h",

424424

runLog: {

425425

maxBytes: "2mb",

Original file line numberDiff line numberDiff line change

@@ -6,13 +6,15 @@ import {

66

resolveAgentMaxConcurrent,

77

resolveSubagentMaxConcurrent,

88

} from "./agent-limits.js";

9+

import { DEFAULT_CRON_MAX_CONCURRENT_RUNS, resolveCronMaxConcurrentRuns } from "./cron-limits.js";

910

import { applyAgentDefaults } from "./defaults.js";

1011

import { OpenClawSchema } from "./zod-schema.js";

1112
1213

describe("agent concurrency defaults", () => {

1314

it("resolves defaults when unset", () => {

1415

expect(resolveAgentMaxConcurrent({})).toBe(DEFAULT_AGENT_MAX_CONCURRENT);

1516

expect(resolveSubagentMaxConcurrent({})).toBe(DEFAULT_SUBAGENT_MAX_CONCURRENT);

17+

expect(resolveCronMaxConcurrentRuns()).toBe(DEFAULT_CRON_MAX_CONCURRENT_RUNS);

1618

});

1719
1820

it("clamps invalid values to at least 1", () => {

@@ -26,6 +28,7 @@ describe("agent concurrency defaults", () => {

2628

};

2729

expect(resolveAgentMaxConcurrent(cfg)).toBe(1);

2830

expect(resolveSubagentMaxConcurrent(cfg)).toBe(1);

31+

expect(resolveCronMaxConcurrentRuns({ maxConcurrentRuns: 0 })).toBe(1);

2932

});

3033
3134

it("accepts subagent spawn depth and per-agent child limits", () => {

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,13 @@

1+

import type { CronConfig } from "./types.cron.js";

2+
3+

export const DEFAULT_CRON_MAX_CONCURRENT_RUNS = 8;

4+
5+

export function resolveCronMaxConcurrentRuns(

6+

cronConfig?: Pick<CronConfig, "maxConcurrentRuns">,

7+

): number {

8+

const raw = cronConfig?.maxConcurrentRuns;

9+

if (typeof raw === "number" && Number.isFinite(raw)) {

10+

return Math.max(1, Math.floor(raw));

11+

}

12+

return DEFAULT_CRON_MAX_CONCURRENT_RUNS;

13+

}

Original file line numberDiff line numberDiff line change

@@ -4,9 +4,11 @@ import {

44

DEFAULT_SUBAGENT_ARCHIVE_AFTER_MINUTES,

55

DEFAULT_SUBAGENT_MAX_CONCURRENT,

66

} from "./agent-limits.js";

7+

import { DEFAULT_CRON_MAX_CONCURRENT_RUNS } from "./cron-limits.js";

78

import {

89

applyAgentDefaults,

910

applyContextPruningDefaults,

11+

applyCronDefaults,

1012

applyMessageDefaults,

1113

} from "./defaults.js";

1214

@@ -121,6 +123,18 @@ describe("config defaults", () => {

121123

);

122124

});

123125
126+

it("fills missing cron concurrency default", () => {

127+

const next = applyCronDefaults({ messages: {} } as never);

128+
129+

expect(next.cron?.maxConcurrentRuns).toBe(DEFAULT_CRON_MAX_CONCURRENT_RUNS);

130+

});

131+
132+

it("preserves explicit cron concurrency", () => {

133+

const next = applyCronDefaults({ cron: { maxConcurrentRuns: 3 } } as never);

134+
135+

expect(next.cron?.maxConcurrentRuns).toBe(3);

136+

});

137+
124138

it("preserves explicit subagent archive default", () => {

125139

const next = applyAgentDefaults({

126140

agents: { defaults: { subagents: { archiveAfterMinutes: 0 } } },

Original file line numberDiff line numberDiff line change

@@ -7,6 +7,7 @@ import {

77

DEFAULT_SUBAGENT_ARCHIVE_AFTER_MINUTES,

88

DEFAULT_SUBAGENT_MAX_CONCURRENT,

99

} from "./agent-limits.js";

10+

import { DEFAULT_CRON_MAX_CONCURRENT_RUNS } from "./cron-limits.js";

1011

import { normalizeAgentModelMapForConfig, normalizeAgentModelRefForConfig } from "./model-input.js";

1112

import {

1213

applyProviderConfigDefaultsForConfig,

@@ -438,6 +439,20 @@ export function applyAgentDefaults(cfg: OpenClawConfig): OpenClawConfig {

438439

};

439440

}

440441
442+

export function applyCronDefaults(cfg: OpenClawConfig): OpenClawConfig {

443+

const raw = cfg.cron?.maxConcurrentRuns;

444+

if (typeof raw === "number" && Number.isFinite(raw)) {

445+

return cfg;

446+

}

447+

return {

448+

...cfg,

449+

cron: {

450+

...cfg.cron,

451+

maxConcurrentRuns: DEFAULT_CRON_MAX_CONCURRENT_RUNS,

452+

},

453+

};

454+

}

455+
441456

export function applyLoggingDefaults(cfg: OpenClawConfig): OpenClawConfig {

442457

const logging = cfg.logging;

443458

if (!logging) {

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ import {

33

applyCompactionDefaults,

44

applyContextPruningDefaults,

55

applyAgentDefaults,

6+

applyCronDefaults,

67

applyLoggingDefaults,

78

applyMessageDefaults,

89

applyModelDefaults,

@@ -63,6 +64,7 @@ export function materializeRuntimeConfig(

6364

}

6465

next = applySessionDefaults(next);

6566

next = applyAgentDefaults(next);

67+

next = applyCronDefaults(next);

6668

if (profile.includeContextPruningDefaults) {

6769

next = applyContextPruningDefaults(next, { manifestRegistry: options.manifestRegistry });

6870

}