You're offline — showing cached data

MC-4766

Fix Tasks page disable not stopping scheduled tasks
2026-06-13 07:36:41 SAST
Home Board MC-4766

Fix Tasks page disable not stopping scheduled tasks

User report from Telegram: Tasks page disable action appears not to stop scheduled tasks. User says they disabled agent-watch and email-sync in MC, but the tasks still ran. Ini...
State Done Next Action Closed Owner Luci Runtime Closed Age 7d ago
MC-4766
Ticket is done; runtime is closed. · profile claude_opus_1m_high

Description

MC-4766
User report from Telegram: Tasks page disable action appears not to stop scheduled tasks. User says they disabled agent-watch and email-sync in MC, but the tasks still ran. Initial investigation: - Before I touched them, /home/lucienne/workspace/tasks/agent-watch.md and email-sync.md still had enabled: true. - I toggled both via the existing /api/toggle/<task_id> endpoint and verified the files now contain enabled: false with disabled_reason: by_choice. - scheduler.py list now reports both as Enabled=NO. - task_runs evidence: agent-watch last ran at 2026-06-06T07:00:00+02 and finished at 07:01:21; email-sync last ran 2026-06-05T07:06. The manual disable I applied happened at about 2026-06-06 07:33 SAST, so no post-disable scheduled run has been observed yet. Suspected failure modes to investigate: 1. UI click may not be reaching /api/toggle from the user-facing host or may fail silently/unclearly. 2. Tasks page might show stale state from cache after toggle. 3. Scheduler may already have launched a due task before user disables it; UI does not communicate that disabling prevents future runs only, not an in-flight run. Acceptance criteria: - Reproduce disable from the same user-facing Tasks page/browser path. - Add regression coverage for disabling a task and for the scheduler skipping enabled:false tasks. - If UI/API failure is confirmed, fix it; if behavior is in-flight-only, make the UI copy/status explicit. - Verify agent-watch and email-sync remain skipped on the next due scheduler evaluation while disabled.

Activity

done
Luci is working...
Live
No activity yet
Help