CRON job won't execute when using the anon/service_role #31187
-
Hi, I've already set the permission for both roles to be able to manage the cron schema and its tables but everytime I spawn a new job. the job won't execute but it's a different case when using the postgres role in the table editor inside supabase. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You might try using a security definer function to make the calls. Here is another discussion on setting grants... |
Beta Was this translation helpful? Give feedback.
-
Solved! Thanks bro, I'll close this now 🙏 |
Beta Was this translation helpful? Give feedback.
You might try using a security definer function to make the calls.
Here is another discussion on setting grants...
https://github.com/orgs/supabase/discussions/27917