Scheduling Edge Functions
The hosted Supabase Platform supports the pg_cron
extension, a recurring job scheduler in Postgres.
In combination with the pg_net
extension, this allows us to invoke Edge Functions periodically on a set schedule.
To access the auth token securely for your Edge Function call, we recommend storing them in Supabase Vault.
Examples
Invoke an Edge Function every minute
Store project_url
and anon_key
in Supabase Vault:
Make a POST request to a Supabase Edge Function every minute: