{"definition_raw":"---\nid: snapshot-capacity\ntitle: Snapshot Capacity_Scheduled forward-schedule file\nschedule: \"30 2 1 * *\"\ntimeout: 180\nretry: true\nenabled: true\nnotify_on: failure\nrun_as: shell\ncommand: \"cd /home/lucienne/workspace && python3 scripts/snapshot_capacity.py\"\ntags: [flysafair, capacity, flightaware, snapshot]\nruntime_profile: direct_python\n---\n**OVERRIDES runtime profile:** uses `direct_python` (plain Python, no model) because the command chain never invokes the `claude` CLI or any LLM API \u2014 pure-infra task; scheduler provider env injection is a no-op (MC-4942 U12 sweep).\n\nMonthly snapshot of the latest Capacity_Scheduled_*.xlsx file from Drive.\nRuns on the 1st of each month at 04:30 SAST (02:30 UTC), before the daily\nCEO dashboard build (05:00 SAST).\n\nCaptures the forward schedule as it stood at month-start so the dashboard\ncan later compute true schedule reliability \u2014 actuals(month X) vs the\nschedule that was promised at the start of month X.\n\nIdempotent \u2014 skips if today's snapshot already exists on Drive.\n\nSource: Capacity/reports/Capacity_Scheduled_*.xlsx (Drive)\nTarget: Capacity_snapshots/Capacity_Scheduled_snapshot_YYYY-MM-DD.xlsx (Drive)\n","id":"snapshot-capacity","last_run":{"duration_s":4.362177,"log_path":"/home/lucienne/workspace/logs/task-runs/snapshot-capacity/396467.log","output":"Source: Capacity_Scheduled_2026-06-01_to_2026-12-31.xlsx (1_4QG0s2EwwDr3MvqE6d27oNROsJOlmhe)\nDownloaded 138,843 bytes\nCreated snapshot: Capacity_Scheduled_snapshot_2026-06-09.xlsx (1SKKcHyw4po2W0GtwGhxFonFtq8tYyPC5)\n","started_at":"2026-06-09T04:04:31.978662+02:00","status":"completed"},"next_run":"2026-07-01 02:30","next_run_iso":"2026-07-01T02:30:00+02:00","runs":[{"duration_s":4.362177,"finished_at":"2026-06-09T04:04:36.343675+02:00","id":396467,"log_path":"/home/lucienne/workspace/logs/task-runs/snapshot-capacity/396467.log","output":"Source: Capacity_Scheduled_2026-06-01_to_2026-12-31.xlsx (1_4QG0s2EwwDr3MvqE6d27oNROsJOlmhe)\nDownloaded 138,843 bytes\nCreated snapshot: Capacity_Scheduled_snapshot_2026-06-09.xlsx (1SKKcHyw4po2W0GtwGhxFonFtq8tYyPC5)\n","started_at":"2026-06-09T04:04:31.978662+02:00","status":"completed","task_id":"snapshot-capacity","task_name":"Snapshot Capacity_Scheduled forward-schedule file"}],"runs_limit":20,"schedule":"30 2 1 * *","schedule_label":{"description":"1st of month at 02:30","is_custom":false,"label":"Monthly","sort":8,"sort_time":"02:30"},"stats":{"avg_duration":4.362177,"completed":1,"failed":0,"timeout":0,"total":1},"task":{"_description":"**OVERRIDES runtime profile:** uses `direct_python` (plain Python, no model) because the command chain never invokes the `claude` CLI or any LLM API \u2014 pure-infra task; scheduler provider env injection is a no-op (MC-4942 U12 sweep).\n\nMonthly snapshot of the latest Capacity_Scheduled_*.xlsx file from Drive.\nRuns on the 1st of each month at 04:30 SAST (02:30 UTC), before the daily\nCEO dashboard build (05:00 SAST).\n\nCaptures the forward schedule as it stood at month-start so the dashboard\ncan later compute true schedule reliability \u2014 actuals(month X) vs the\nschedule that was promised at the start of month X.\n\nIdempotent \u2014 skips if today's snapshot already exists on Drive.\n\nSource: Capacity/reports/Capacity_Scheduled_*.xlsx (Drive)\nTarget: Capacity_snapshots/Capacity_Scheduled_snapshot_YYYY-MM-DD.xlsx (Drive)","_file":"snapshot-capacity.md","_path":"/home/lucienne/workspace/tasks/snapshot-capacity.md","command":"cd /home/lucienne/workspace && python3 scripts/snapshot_capacity.py","enabled":true,"id":"snapshot-capacity","notify_on":"failure","retry":true,"run_as":"shell","runtime_profile":"direct_python","schedule":"30 2 1 * *","tags":["flysafair","capacity","flightaware","snapshot"],"timeout":180,"title":"Snapshot Capacity_Scheduled forward-schedule file"}}
