-
-
Notifications
You must be signed in to change notification settings - Fork 40k
Closed
Description
Description
Cron jobs configured with wakeMode: "now" are being marked as completed (status: "ok") without actually waking/invoking an agent session to process the task.
Configuration
{
"name": "example-reminder",
"enabled": true,
"schedule": {
"kind": "cron",
"expr": "30 8 10 1 *"
},
"sessionTarget": "main",
"wakeMode": "now",
"payload": {
"text": "Reminder: Do something important",
"kind": "systemEvent"
}
}Expected Behavior
When the cron fires:
- Agent session should be woken/created
- The payload text should be delivered to the agent
- Agent should process the task (e.g., send a notification)
- Job marked complete with actual
durationMsreflecting agent processing time
Actual Behavior
- Cron fires at scheduled time
- No agent session is created or woken
- Job immediately marked as
finishedwithstatus: "ok" durationMs: 0- indicating no agent work was done- The
summaryfield just echoes the payload text, not a result of agent processing
Evidence from Run Logs
{
"ts": 1768033800001,
"jobId": "<uuid>",
"action": "finished",
"status": "ok",
"summary": "Reminder: Do something important",
"runAtMs": 1768033800001,
"durationMs": 0,
"nextRunAtMs": 1799569800000
}Additional Context
- No session files were created or modified during the cron execution window
- The issue appears specific to
kind: "systemEvent"payloads withwakeMode: "now" - Other cron jobs show the same pattern (
durationMs: 0across multiple jobs)
Environment
- Running as
gateway-daemonon Linux - Node.js v22.21.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels