S
Supabase2mo ago
ElCan

Can't delete or disable cron job

This is the message: Failed to toggle database cron job: Job 5 does not exist or you don't own it But I still can see it and list it through queries
7 Replies
garyaustin
garyaustin2mo ago
What are you calling when you get the error? If you look in the table UI at cron.jobs what is the user that owns the id job?
ElCan
ElCanOP2mo ago
Deactivate the job or delete it. Can't see who owns it, I'm the only one in the project
No description
garyaustin
garyaustin2mo ago
Go to table UI, cron schema, jobs It is more about what Postgres role created it. And do you intend to have crons with same function call? You are using the Cron UI for this?
garyaustin
garyaustin2mo ago
No description
ElCan
ElCanOP2mo ago
"supabase_read_only_user" Mostly the AI Assistant And the cron ui too For deletion But for creation it's the AI
garyaustin
garyaustin2mo ago
Is the AI signing in as that user? If so then you need to use it to make the cron.unschedule would be my guess.
ElCan
ElCanOP2mo ago
I've run that query too

Did you find this page helpful?