Watch: Run a task on a schedule in my backend | Vovy
Watch Vovy do it on a Mac: "Make my app send a digest email every Monday at 9am with Supabase Cron". Use Supabase Cron to run SQL or call an Edge Function on a schedule, like daily cleanups or weekly digest emails.
"Make my app send a digest email every Monday at 9am with Supabase Cron"
Use Supabase Cron to run SQL or call an Edge Function on a schedule, like daily cleanups or weekly digest emails.
What happens in the video
- Turn on the Cron integration: Vovy opens Integrations, then Cron, in your Supabase project and enables it. A cron job is a task that runs on a timer.
- Decide what runs: Simple jobs, like deleting old rows, run as SQL. Jobs that send email call an Edge Function that uses Resend.
- Set the schedule: Vovy writes the cron schedule, like 0 9 * * 1 for Mondays at 9, and explains it runs in UTC, so it converts to your timezone.
- Create the job: Vovy asks, then creates the job. If it sends email to real users, Vovy triggers one test run to your address first.
- Check the run history: Vovy opens the job's run history and shows a card with the last run, whether it succeeded, and the next scheduled time.
Read the step-by-step guideLoading...