Skip to content

Cron isolated session fails to execute: task stuck in 'running' state #65225

@doctCui

Description

@doctCui

Bug Description

Cron jobs with sessionTarget: isolated fail to execute. The task status remains stuck in running state, but no actual execution occurs and no run history is recorded.

Steps to Reproduce

  1. Create a cron job with isolated session:
openclaw cron add --name "Test" --cron "00 15 * * *" --session isolated --message "Test task" --agent news-agent --channel feishu --to "user:ou_xxx"
  1. Check job status:
openclaw cron list
  1. Observe: Status shows running but Last column is empty (-)

  2. Check run history:

openclaw cron runs --id <jobId>
  1. Result: Empty (no execution records)

Expected vs Actual

Aspect Expected Actual
Status ok running (stuck)
Last Exec Timestamp Empty (-)
Run History Recorded None

Key Log Entry

"cron: clearing stale running marker on startup"

Environment

  • OpenClaw: 2026.4.11
  • OS: macOS 24.6.0
  • Node: v24.2.0

Workaround

Use sessionTarget: main instead of isolated.


Happy to provide additional logs if needed!

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