{"definition_raw":"---\nid: investment-weekly-digest\ntitle: Investment Weekly Macro Audio Overview (Podcast + Slides)\nschedule: \"0 7 * * 6\"\ntimeout: 7200\nretry: false\nenabled: true\nnotify_on: failure\nbackground: true\nrun_as: shell\ncommand: \"cd /home/lucienne/workspace && python3 /home/lucienne/workspace/scripts/investment_weekly_digest.py\"\ntags: [investment, economics, macro, markets, weekly, podcast, audio, audio-overview, briefing, notebooklm, slides, video, youtube]\nruntime_profile: direct_mixed\n---\n\n**OVERRIDES runtime profile:** uses `direct_mixed` because the script bypasses `claude` CLI \u2014 it calls yt-dlp directly for channel scraping and the NotebookLM helper (Gemini-backed) for artifact generation.\n\nWeekly macro / investment / economics audio overview \u2014 Saturdays 09:00 SAST (07:00 UTC).\n\nPulls last 7 days of videos from a curated list of reputable macro sensemaking sources (Lyn Alden, Real Vision, Patrick Boyle, Aswath Damodaran, The Compound/Ritholtz, FT, Bloomberg, Moneyweb, BizNews, Just One Lap, etc.) defined in `scripts/investment_weekly_digest.py` (`CHANNELS` list). Hype-heavy crypto/equity-influencer channels are excluded or kept skeptical/non-primary.\n\nFilters by recency + view threshold using full yt-dlp metadata (not flat extraction \u2014 flat mode drops `upload_date`/`view_count` and silently selects 0 videos), creates a NotebookLM notebook with the qualifying videos, then generates audio overview (podcast), slide deck and video overview framed for an SA investor with offshore funds. Artifacts land in `~/workspace/reports/investment-weekly-YYYY-MM-DD/`. Telegram summary sent on completion.\n\nFailure modes that now alert (`notify_on: failure` + non-zero exit):\n- All channel fetches failed / empty (likely yt-dlp or network issue)\n- Zero videos qualified after filtering (channels gone stale or filter too strict)\n- NotebookLM artifact generation produced no audio (the primary deliverable)\n\nDry-run mode (skips NotebookLM + Telegram, prints collection summary):\n`INVESTMENT_DIGEST_DRY_RUN=1 python3 scripts/investment_weekly_digest.py`\n\nFirst fire: Sat 2026-05-02 09:00 SAST.\n","id":"investment-weekly-digest","last_run":{"duration_s":3937.814679,"log_path":"/home/lucienne/workspace/logs/task-runs/investment-weekly-digest/384036.log","output":"[start] investment-weekly-digest 2026-06-06 dry_run=False\n[videos] 28 after filtering\n[notebook] 6c31b1bd-c8a5-4c35-a316-7286a7f9a1e5\n[gen] audio\n[gen] slides\n[gen] video\n[done]\n","started_at":"2026-06-06T08:07:22.481255+02:00","status":"completed"},"next_run":"2026-06-13 07:00","next_run_iso":"2026-06-13T07:00:00+02:00","runs":[{"duration_s":3937.814679,"finished_at":"2026-06-06T09:13:00.296191+02:00","id":384036,"log_path":"/home/lucienne/workspace/logs/task-runs/investment-weekly-digest/384036.log","output":"[start] investment-weekly-digest 2026-06-06 dry_run=False\n[videos] 28 after filtering\n[notebook] 6c31b1bd-c8a5-4c35-a316-7286a7f9a1e5\n[gen] audio\n[gen] slides\n[gen] video\n[done]\n","started_at":"2026-06-06T08:07:22.481255+02:00","status":"completed","task_id":"investment-weekly-digest","task_name":"Investment Weekly Macro Audio Overview (Podcast + Slides)"},{"duration_s":3953.612329,"finished_at":"2026-06-06T08:07:22.770503+02:00","id":383817,"log_path":"/home/lucienne/workspace/logs/task-runs/investment-weekly-digest/383817.log","output":"[start] investment-weekly-digest 2026-06-06 dry_run=False\n[videos] 22 after filtering\n[notebook] c5a2f7ab-9219-494d-9ee5-2c9a3cd11661\n[gen] audio\n[gen] slides\n[gen] video\n[done]\n","started_at":"2026-06-06T07:01:29.157249+02:00","status":"completed","task_id":"investment-weekly-digest","task_name":"Investment Weekly Macro Audio Overview (Podcast + Slides)"}],"runs_limit":20,"schedule":"0 7 * * 6","schedule_label":{"description":"Sat at 07:00","is_custom":false,"label":"Weekly (Sat)","sort":6,"sort_time":"07:00"},"stats":{"avg_duration":3945.7135040000003,"completed":2,"failed":0,"timeout":0,"total":2},"task":{"_description":"**OVERRIDES runtime profile:** uses `direct_mixed` because the script bypasses `claude` CLI \u2014 it calls yt-dlp directly for channel scraping and the NotebookLM helper (Gemini-backed) for artifact generation.\n\nWeekly macro / investment / economics audio overview \u2014 Saturdays 09:00 SAST (07:00 UTC).\n\nPulls last 7 days of videos from a curated list of reputable macro sensemaking sources (Lyn Alden, Real Vision, Patrick Boyle, Aswath Damodaran, The Compound/Ritholtz, FT, Bloomberg, Moneyweb, BizNews, Just One Lap, etc.) defined in `scripts/investment_weekly_digest.py` (`CHANNELS` list). Hype-heavy crypto/equity-influencer channels are excluded or kept skeptical/non-primary.\n\nFilters by recency + view threshold using full yt-dlp metadata (not flat extraction \u2014 flat mode drops `upload_date`/`view_count` and silently selects 0 videos), creates a NotebookLM notebook with the qualifying videos, then generates audio overview (podcast), slide deck and video overview framed for an SA investor with offshore funds. Artifacts land in `~/workspace/reports/investment-weekly-YYYY-MM-DD/`. Telegram summary sent on completion.\n\nFailure modes that now alert (`notify_on: failure` + non-zero exit):\n- All channel fetches failed / empty (likely yt-dlp or network issue)\n- Zero videos qualified after filtering (channels gone stale or filter too strict)\n- NotebookLM artifact generation produced no audio (the primary deliverable)\n\nDry-run mode (skips NotebookLM + Telegram, prints collection summary):\n`INVESTMENT_DIGEST_DRY_RUN=1 python3 scripts/investment_weekly_digest.py`\n\nFirst fire: Sat 2026-05-02 09:00 SAST.","_file":"investment-weekly-digest.md","_path":"/home/lucienne/workspace/tasks/investment-weekly-digest.md","background":true,"command":"cd /home/lucienne/workspace && python3 /home/lucienne/workspace/scripts/investment_weekly_digest.py","enabled":true,"id":"investment-weekly-digest","notify_on":"failure","retry":false,"run_as":"shell","runtime_profile":"direct_mixed","schedule":"0 7 * * 6","tags":["investment","economics","macro","markets","weekly","podcast","audio","audio-overview","briefing","notebooklm","slides","video","youtube"],"timeout":7200,"title":"Investment Weekly Macro Audio Overview (Podcast + Slides)"}}
