{"definition_raw":"---\nid: mc-message-cleanup\ntitle: Clean up old ticket messages\nschedule: \"0 3 * * 0\"\ntimeout: 60\nretry: false\nenabled: true\nnotify_on: failure\nrun_as: shell\ncommand: \"python3 -c \\\"import sys; sys.path.insert(0, '/home/lucienne/workspace/mission-control'); from models import cleanup_old_ticket_messages; deleted = cleanup_old_ticket_messages(30); print(f'Deleted {deleted} old ticket messages')\\\"\"\ntags: [infrastructure, mission-control, cleanup]\nruntime_profile: direct_python\n---\n**OVERRIDES runtime profile:** uses `direct_python` (plain Python, no model) because the inline python call runs models.cleanup_old_ticket_messages() \u2014 pure sqlite cleanup, no `claude` CLI, no LLM API (MC-4942 U12 sweep).\n\nWeekly cleanup of ticket_messages for tickets completed more than 30 days ago.\nRuns Sunday at 03:00 SAST. Prevents unbounded table growth (MC-304).\n","id":"mc-message-cleanup","last_run":{"duration_s":0.2581,"log_path":"/home/lucienne/workspace/logs/task-runs/mc-message-cleanup/387744.log","output":"Deleted 485 old ticket messages\n","started_at":"2026-06-07T03:01:04.708073+02:00","status":"completed"},"next_run":"2026-06-14 03:00","next_run_iso":"2026-06-14T03:00:00+02:00","runs":[{"duration_s":0.2581,"finished_at":"2026-06-07T03:01:04.968575+02:00","id":387744,"log_path":"/home/lucienne/workspace/logs/task-runs/mc-message-cleanup/387744.log","output":"Deleted 485 old ticket messages\n","started_at":"2026-06-07T03:01:04.708073+02:00","status":"completed","task_id":"mc-message-cleanup","task_name":"Clean up old ticket messages"}],"runs_limit":20,"schedule":"0 3 * * 0","schedule_label":{"description":"Sun at 03:00","is_custom":false,"label":"Weekly (Sun)","sort":6,"sort_time":"03:00"},"stats":{"avg_duration":0.2581,"completed":1,"failed":0,"timeout":0,"total":1},"task":{"_description":"**OVERRIDES runtime profile:** uses `direct_python` (plain Python, no model) because the inline python call runs models.cleanup_old_ticket_messages() \u2014 pure sqlite cleanup, no `claude` CLI, no LLM API (MC-4942 U12 sweep).\n\nWeekly cleanup of ticket_messages for tickets completed more than 30 days ago.\nRuns Sunday at 03:00 SAST. Prevents unbounded table growth (MC-304).","_file":"mc-message-cleanup.md","_path":"/home/lucienne/workspace/tasks/mc-message-cleanup.md","command":"python3 -c \"import sys; sys.path.insert(0, '/home/lucienne/workspace/mission-control'); from models import cleanup_old_ticket_messages; deleted = cleanup_old_ticket_messages(30); print(f'Deleted {deleted} old ticket messages')\"","enabled":true,"id":"mc-message-cleanup","notify_on":"failure","retry":false,"run_as":"shell","runtime_profile":"direct_python","schedule":"0 3 * * 0","tags":["infrastructure","mission-control","cleanup"],"timeout":60,"title":"Clean up old ticket messages"}}
