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

推荐订阅源

月光博客
月光博客
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
博客园 - Franky
V
V2EX
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Jina AI
Jina AI
博客园 - 叶小钗
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
D
Docker
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志

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(cron): retry isolated setup timeouts (#94588) · openc...
clawsweeper · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,6 +1,10 @@

11

// Retry hint tests cover user-facing guidance for failed cron retry timing.

22

import { describe, expect, it } from "vitest";

33

import { resolveCronExecutionRetryHint } from "./retry-hint.js";

4+

import {

5+

preExecutionTimeoutErrorMessage,

6+

setupTimeoutErrorMessage,

7+

} from "./service/execution-errors.js";

48
59

describe("resolveCronExecutionRetryHint", () => {

610

it("matches classified transient errors", () => {

@@ -37,6 +41,15 @@ describe("resolveCronExecutionRetryHint", () => {

3741

});

3842

});

3943
44+

it("classifies cron pre-execution watchdog failures as timeout retries", () => {

45+

for (const message of [setupTimeoutErrorMessage(), preExecutionTimeoutErrorMessage()]) {

46+

expect(resolveCronExecutionRetryHint(message, ["timeout"])).toEqual({

47+

retryable: true,

48+

category: "timeout",

49+

});

50+

}

51+

});

52+
4053

it("does not classify bare 5xx-looking numbers as server_error", () => {

4154

for (const message of [

4255

"context limit 512 exceeded",

Original file line numberDiff line numberDiff line change

@@ -25,7 +25,7 @@ const TRANSIENT_PATTERNS: Record<CronRetryOn, RegExp> = {

2525

/\b529\b|\boverloaded(?:_error)?\b|high demand|temporar(?:ily|y) overloaded|capacity exceeded/i,

2626

network:

2727

/(network|fetch failed|socket|econnreset|econnrefused|eai_again|enetdown|ehostunreach|ehostdown|enetreset|enetunreach|epipe)/i,

28-

timeout: /(timeout|etimedout)/i,

28+

timeout: /(timeout|timed out|stalled before execution start|etimedout)/i,

2929

server_error: SERVER_ERROR_PATTERN,

3030

};

3131
Original file line numberDiff line numberDiff line change

@@ -550,6 +550,49 @@ describe("cron service timer regressions", () => {

550550

expect(runIsolatedAgentJob).toHaveBeenCalledTimes(2);

551551

});

552552
553+

it("retries recurring jobs after isolated setup timeouts before the next scheduled slot", async () => {

554+

const store = timerRegressionFixtures.makeStorePath();

555+

const scheduledAt = Date.parse("2026-06-08T13:00:00.000Z");

556+

const everySixHoursMs = 6 * 60 * 60 * 1_000;

557+
558+

const cronJob = createIsolatedRegressionJob({

559+

id: "recurring-setup-timeout-retry",

560+

name: "ShadowTrader Auto Channel Bug Monitor",

561+

scheduledAt,

562+

schedule: { kind: "every", everyMs: everySixHoursMs, anchorMs: scheduledAt },

563+

payload: { kind: "agentTurn", message: "monitor bugs" },

564+

state: { nextRunAtMs: scheduledAt },

565+

});

566+

await saveCronStore(store.storePath, { version: 1, jobs: [cronJob] });

567+
568+

const now = scheduledAt;

569+

const runIsolatedAgentJob = vi.fn().mockResolvedValueOnce({

570+

status: "error",

571+

error: "cron: isolated agent setup timed out before runner start",

572+

});

573+

const state = createCronServiceState({

574+

cronEnabled: true,

575+

storePath: store.storePath,

576+

log: noopLogger,

577+

nowMs: () => now,

578+

enqueueSystemEvent: vi.fn(),

579+

requestHeartbeat: vi.fn(),

580+

runIsolatedAgentJob,

581+

cronConfig: {

582+

retry: { maxAttempts: 1, backoffMs: [1000], retryOn: ["timeout"] },

583+

},

584+

});

585+
586+

await onTimer(state);

587+

const jobAfterRetry = requireJob(state, "recurring-setup-timeout-retry");

588+

expect(jobAfterRetry.enabled).toBe(true);

589+

expect(jobAfterRetry.state.lastStatus).toBe("error");

590+

expect(jobAfterRetry.state.lastError).toContain("setup timed out before runner start");

591+

expect(jobAfterRetry.state.nextRunAtMs).toBeGreaterThan(scheduledAt);

592+

expect(jobAfterRetry.state.nextRunAtMs).toBeLessThan(scheduledAt + everySixHoursMs);

593+

expect(runIsolatedAgentJob).toHaveBeenCalledTimes(1);

594+

});

595+
553596

it("uses the normal recurring schedule after transient retry attempts are exhausted", async () => {

554597

const store = timerRegressionFixtures.makeStorePath();

555598

const scheduledAt = Date.parse("2026-05-29T02:28:00.000Z");