Back to Supabase

Install

apps/docs/content/guides/cron/install.mdx

1.26.04863 B
Original Source

Install the Supabase Cron Postgres Module to begin scheduling recurring Jobs.

<Tabs scrollable size="small" type="underlined" defaultActiveId="dashboard" queryGroup="database-method"

<TabPanel id="dashboard" label="Dashboard">
  1. Go to the Cron Postgres Module under Integrations in the Dashboard.
  2. Enable the pg_cron extension.
</TabPanel> <TabPanel id="sql" label="SQL">
sql
create extension pg_cron with schema pg_catalog;

grant usage on schema cron to postgres;
grant all privileges on all tables in schema cron to postgres;
</TabPanel> </Tabs>

Uninstall

Uninstall Supabase Cron by disabling the pg_cron extension:

sql
drop extension if exists pg_cron;
<Admonition type="danger">

Disabling the pg_cron extension will permanently delete all Jobs.

</Admonition>