BACK TO CLAUDE SKILLS
◈
schedule_daily_cron
Data PipelineDataCron
INSTALLATION
$python -c "exec(open('schedule_daily_cron.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Configures APScheduler's `BlockingScheduler` to execute the full analysis pipeline — fetching top 100 coins, analyzing each, and caching to Supabase — at midnight UTC daily. The scheduler is started with `sched.start()` which blocks the Python process indefinitely, making it suitable for running in a dedicated background process or Docker container.
For production deployments, prefer a system-level cron job or a managed scheduler (e.g. GitHub Actions scheduled workflow, Railway cron) over APScheduler's in-process scheduling. In-process schedulers are fragile to crashes — if the Python process exits unexpectedly, no restart logic is in place. System crons restart independently of the application.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryData Pipeline
ComplexityIntermediate
LanguagePython 3.10+
TagsData, Cron
[ ASK CLAUDE ]
Ask AI about this skill before installing it.