Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’4y agoβ€’
5 replies
stukennedy

testing cron jobs with pg_cron

trying to figure out how to get cron jobs working. I've added the extension and enabled it following this
https://supabase.com/blog/postgres-as-a-cron-server
When I create a job to run using the following query
select
  cron.schedule(
    'cron-test-2', -- name of the cron job
    '* * * * *', -- every minute
    $$
     UPDATE notifications
     SET updated_at = now()
     WHERE uuid="674b2fb9-fb77-4d7e-879f-273453a88f01"
    $$
  );
select
  cron.schedule(
    'cron-test-2', -- name of the cron job
    '* * * * *', -- every minute
    $$
     UPDATE notifications
     SET updated_at = now()
     WHERE uuid="674b2fb9-fb77-4d7e-879f-273453a88f01"
    $$
  );

it successfully returns a schedule with an id. But it doesn't seem to work.
I've got no way of debugging this or even listing cron jobs.
Can anyone help?
Supabase
Postgres as a CRON Server
Running repetitive tasks with your Postgres database.
Postgres as a CRON Server
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cron Jobs Limit
SupabaseSSupabase / help-and-questions
9mo ago
supabase db reset: problems with pg_cron
SupabaseSSupabase / help-and-questions
14mo ago
How to view active cron jobs?
SupabaseSSupabase / help-and-questions
3y ago
question about pg_cron best practice
SupabaseSSupabase / help-and-questions
4y ago