-
Notifications
You must be signed in to change notification settings - Fork 11
[Bug] Scheduled task fires 12x instead of once — duplicate sessions with unique task IDs #289
Description
Description
A single scheduled task configured to run once daily is firing multiple times per trigger, creating duplicate sessions with unique task IDs. Additionally, completed sessions are being re-triggered back to "Planning" state.
Bug 1: Duplicate Session Firing (Confirmed Recurring)
April 2, 2026 (first occurrence)
- Scheduled task A (Daily at 2:30 AM CDT): fired 12x instead of 1x
- Scheduled task B (Daily at 12:30 AM CDT): fired 6x instead of 1x
- Other tasks (3 others): fired correctly 1x each
- Impact: 32/100 daily sessions consumed instead of ~11. 10 near-identical PRs from task A, 6 from task B.
April 3, 2026 (second occurrence — bug is ongoing)
- Scheduled task C: fired 13x instead of 1x (6 completed, 7 stuck "Awaiting User Feedback")
- Scheduled task D: fired 8x instead of 1x (1 completed, 7 stuck)
- Other tasks fired correctly 1x each
- Impact: ~21 wasted sessions, 3 duplicate PRs closed manually
Pattern
- Longer-running tasks duplicate more (12-13x) while quick tasks run correctly once
- Suggests a timeout/retry mechanism in the scheduler is re-dispatching before confirming the first execution started
Bug 2: Completed Sessions Re-triggering (NEW)
During monitoring on April 3, two sessions that had reached "Completed" status reverted to "Planning" and began re-executing:
- Session
12377317433143918846: was "Completed", switched to "Planning" ~15 min later - Session
14017486297168102612: was "Completed", switched to "Planning" ~30 min later
This is a separate issue from Bug 1 — these are not new sessions, but completed sessions being zombied back to life.
Reproduction
- Create a scheduled task set to run daily
- Use a prompt that triggers moderate work (file reads + code analysis + potential PR creation)
- Wait for the scheduled trigger
- Observe via
jules remote list --sessionthat multiple sessions are created with unique task IDs
Expected Behavior
1 session created per scheduled trigger, 1 task ID assigned. Completed sessions stay completed.
Actual Behavior
- 6-13 sessions created from a single scheduled trigger, each with a unique task ID
- Some completed sessions revert to "Planning" and re-execute
- "Awaiting User Feedback" sessions accumulate with no way to dismiss via CLI
Impact
- Session quota: 40-50 of 200 daily sessions consumed by duplicates across two nights
- PR noise: Duplicate PRs require manual cleanup
- No CLI mitigation:
jules remotehas nocancel,reply, ordismisscommand, so stuck sessions can only be managed via TUI/web UI - Ongoing: Bug has reproduced on consecutive nights (April 2 and April 3, 2026)
Environment
- Jules CLI: @google/jules@0.1.41
- 11 scheduled tasks configured, all "Active", all set to daily
- Repository: private Flutter/Dart monorepo
- Prompts contain no loops, retry logic, or task-creation instructions
Prompt Example
Read the shared preamble for execution rules, then read project conventions, then read the agent-specific instructions and execute the mission described. You are unattended — no questions, no status. Either fix an issue and create a PR, or exit silently.
Requested Fixes
- Dedup scheduled triggers — a scheduled task should create exactly 1 session per trigger
- Completed sessions must not revert — once "Completed", a session should be immutable
- CLI session management — add
jules remote cancel/dismiss --session <id>for stuck sessions - Visibility — expose session conversation history via
jules remote view --session <id>(currently only diffs are available viapull)