mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
## Problem - Current `/product` pages could use a bit of SEO optimization for terms - Current product pages include marketing copy within the H1 - Few other tweaks in docs. ## Solution Moves marketing subtitles out of the `/database` / `/compute` / etc h1s. Updates a few keywords based on seo data within pages + docs ## Preview links | Before | After | | --- | --- | | [/database](https://supabase.com/database) | [/database](https://zone-www-dot-com-git-kody-devrel-861-seo-term-t-9418b2-supabase.vercel.app/database) | --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
---
|
|
title: 'Cron'
|
|
subtitle: 'Schedule Recurring Cron Jobs in Postgres'
|
|
tocVideo: miRQPbIJOuQ
|
|
---
|
|
|
|
Supabase Cron is a Postgres Module that simplifies scheduling recurring Cron Jobs and monitoring Job runs inside Postgres.
|
|
|
|
Cron Jobs can be created via SQL or the [Integrations -> Cron](/dashboard/project/_/integrations) interface inside the Dashboard, and can run anywhere from every second to once a year depending on your use case.
|
|
|
|
<Image
|
|
alt="Manage cron jobs via the Dashboard"
|
|
src={{
|
|
dark: '/docs/img/guides/cron/cron.jpg',
|
|
light: '/docs/img/guides/cron/cron--light.jpg',
|
|
}}
|
|
width={2072}
|
|
height={1457}
|
|
/>
|
|
|
|
Every Job can run SQL snippets or [database functions](/docs/guides/database/functions) with zero network latency or make an HTTP request, such as invoking a Supabase Edge Function, with ease.
|
|
|
|
<Admonition type="note">
|
|
|
|
For best performance, we recommend no more than 8 Jobs run concurrently. Each Job should run no more than 10 minutes.
|
|
|
|
</Admonition>
|
|
|
|
## How does Cron work?
|
|
|
|
Under the hood, Supabase Cron uses the [`pg_cron`](https://github.com/citusdata/pg_cron) Postgres database extension which is the scheduling and execution engine for your Jobs.
|
|
|
|
The extension creates a `cron` schema in your database and all Jobs are stored on the `cron.job` table. Every Job's run and its status is recorded on the `cron.job_run_details` table.
|
|
|
|
The Supabase Dashboard provides an interface for you to schedule Jobs and monitor Job runs. You can also do the same with SQL.
|
|
|
|
## Resources
|
|
|
|
- [`pg_cron` GitHub Repository](https://github.com/citusdata/pg_cron)
|