惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
A
About on SuperTechFans
Vercel News
Vercel News
B
Blog
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
D
Docker
V
Visual Studio Blog
博客园 - 叶小钗
The Cloudflare Blog
Jina AI
Jina AI
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏

Supabase Blog

AI Agents Know About Supabase. They Don't Always Use It Right. Custom OIDC Providers for Supabase Auth 100,000 GitHub stars Supabase docs over SSH Navigating Regional Network Blocks Supabase Joins the Stripe Projects Developer Preview Log Drains: Now available on Pro Supabase Storage: major performance, security, and reliability updates Supabase incident on February 12, 2026 Hydra joins Supabase X / Twitter OAuth 2.0 is now available for Supabase Auth BKND joins Supabase Supabase is now an official Claude connector Supabase PrivateLink is now available Introducing: Postgres Best Practices When to use Read Replicas vs. bigger compute Introducing TRAE SOLO integration with Supabase Supabase Security Retro: 2025 Sync Stripe Data to Your Supabase Database in One Click Building ChatGPT Apps with Supabase Edge Functions and mcp-use Own Your Observability: Supabase Metrics API Introducing iceberg-js: A JavaScript Client for Apache Iceberg Introducing Supabase for Platforms Adding Async Streaming to Postgres Foreign Data Wrappers Build "Sign in with Your App" using Supabase Auth Introducing Seven New Email Templates for Supabase Auth The new Supabase power for Kiro Introducing Supabase ETL Introducing Analytics Buckets Introducing Vector Buckets
Supabase Cron
Ivan Vasilov, Oliver Rice, Terry Sutton · 2024-12-04 · via Supabase Blog

Supabase Cron

Today we're releasing Supabase Cron, a new Postgres Module that makes recurring Jobs simple and intuitive inside your database.

It's designed to work seamlessly with the entire Supabase platform. Create recurring Jobs to run SQL snippets and call database functions, Supabase Edge Functions, and even remote webhooks.

What's a Cron?#

Cron is a tool for scheduling recurring tasks that run at specified intervals. These periodic tasks are called “Cron Jobs”. Common use-cases include:

  • Maintenance: delete or archive old data.
  • Reporting and analytics: save daily or weekly reports for analysis.
  • Automation: send periodic emails, like newsletters or reminders.
  • Monitoring: perform health checks on your database and log the results.
  • Performance: automate vacuuming tables and rebuilding indexes.

Supabase Cron stores the scheduling logic within Postgres and runs your Jobs accordingly while integrating with the rest of the Supabase primitives - Dashboard, Edge Functions, and AI Assistant.

You can create Jobs either via the Dashboard or SQL.

Within the Dashboard you can define schedules using standard cron syntax and the special pg_cron seconds syntax for sub-minute schedules or use natural language.

You can choose between four types of Jobs based on what you need to execute:

SQL Snippets#

Create an inline SQL query or command to run on your database periodically. Use this for tasks like:

Database Functions#

Call a Postgres function. This is useful for workflows, such as:

  • Batch processing operations.
  • Running periodic maintenance tasks.
  • Performing multi-step updates using transactions.

HTTP Requests (webhooks)#

Trigger an external HTTP endpoint. Use this for:

  • Starting external workflows.
  • Syncing data with third-party APIs.
  • Sending notifications to external systems.

Supabase Edge Functions#

Run a serverless function to execute custom logic. Examples include:

  • Creating embeddings.
  • Sending automated email updates.
  • Fetching external data and storing it in your database.

These options cover a wide range of use cases, helping with everything from database management to external integrations.

Observe and Debug Jobs#

Wondering why a Job failed? You can view the history of all Jobs and their logs in the Dashboard. You can see when a Job started, how long it took, and what the result was.

For a deeper dive, you can view Jobs in the Logs Explorer.

Try Supabase Cron today#

Getting started is easy:

  1. Visit the Integrations page in your project.
  2. Enable the Cron Postgres Module.
  3. Create your first scheduled Job.

We're looking forward to seeing how you use Supabase Cron to help automate your workflows!