Skip to content

[Bug] Cron agentTurn jobs timeout even when script executes successfully #58138

@richarduncle

Description

@richarduncle

Bug Description

When using cron jobs with agentTurn payload, the job reports "job execution timed out" even though the underlying script executes successfully. The result is never delivered to the configured channel.

Environment

  • OpenClaw version: 2026.3.28
  • macOS
  • Provider: minimax/MiniMax-M2.7

Steps to Reproduce

  1. Create a cron job with agentTurn payload that runs a bash script
  2. Observe the cron runs over time

Expected Behavior

  • Script executes successfully
  • Output is delivered to the configured channel (WeChat)

Actual Behavior

  • Script does execute successfully (confirmed via script-side logging — curl exits 0, all steps complete)
  • But cron reports: cron: job execution timed out
  • deliveryStatus: unknown — no message reaches WeChat

Evidence

Script-side log — shows script executes correctly:

[2026-03-31 10:30:04] 脚本开始启动
[2026-03-31 10:30:04] API 请求完成,curl 退出码=0
[DEBUG] 脚本执行完毕
🤖 MiniMax 用量报告 2026-03-31 10:30

Cron runs log — shows timeout:

runAtMs: 1774927800034 (10:30)
durationMs: 120015
status: error
error: "cron: job execution timed out"
deliveryStatus: "unknown"

Additional Observations

  • Direct script execution via curl to MiniMax API works fine
  • The issue appears to be that isolated session AI API calls timeout
  • gateway.err.log shows: Profile minimax:cn timed out. Trying next account...
  • The isolated session's MiniMax API connection is unstable

Questions

  • How does an isolated session connect to the MiniMax AI API?
  • What is the "Profile minimax:cn" and why does it timeout while direct curl to MiniMax API succeeds?
  • Is there a way to execute scripts without going through the AI API layer for delivery?

Metadata

Metadata

Assignees

No one assigned

    Labels

    close:duplicateClosed as duplicatededupe:childDuplicate issue/PR child in dedupe cluster

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions