Skip to content

[memory-core] "managed dreaming cron could not be reconciled (cron service unavailable)" startup race warning #75889

@highfly-hi

Description

@highfly-hi

[memory-core] "managed dreaming cron could not be reconciled (cron service unavailable)" startup race warning

Environment

  • openclaw 2026.4.29
  • memory-core plugin with dreaming.enabled: true
  • External cron via ~/.openclaw-secretary/cron/jobs.json works correctly (job Memory Dreaming Promotion id=90f6cecb…, schedule 0 3 * * *, last run status=ok 12.2s)

Symptom

On every gateway startup the log emits:

memory-core: managed dreaming cron could not be reconciled (cron service unavailable)

The warning is harmless — the cron does run on schedule via the external cron/jobs.json reconciliation that initializes after memory-core. But the noise:

  1. Hides real issues during startup log review.
  2. Misleads operators into thinking dreaming is broken (it isn't).
  3. Suggests memory-core queries the cron service before the cron plugin's croner module has finished registering.

Proposed fix

  • memory-core should defer cron reconciliation until the cron plugin signals ready (e.g., await gateway.plugins.waitFor('cron') or subscribe to a plugin:ready:cron event).
  • Alternatively, downgrade the message to info level and add a one-shot retry on next event-loop tick.

Repro

  1. Enable plugins.entries.memory-core.config.dreaming.enabled = true.
  2. Restart gateway, grep first 5 seconds of logs:
    journalctl --user -u openclaw-<profile>-gateway.service -n 200 | grep "memory-core"
    
  3. Observe the warning, then verify via cron/jobs.json that the dreaming cron actually executes on schedule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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