Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on Google Cloud Platform Cloud SQL pg_cron is not working on monthly and weekly schedule #325

Open
paolocastle opened this issue May 3, 2024 · 0 comments

Comments

@paolocastle
Copy link

I installed pg_cron extension (v.1.4 ) on GCP Cloud SQL PostgreSQL (v.14) .

I instaleld it on "postgres" database and it works smoothly on daily schedule

E.G.

SELECT cron.schedule('test cron OK', '21 18 * * *', 'VACUUM (FULL, VERBOSE) cron.job');
SELECT cron.schedule('test cron OK', '21 * * * *', 'VACUUM (FULL, VERBOSE) cron.job');

But when I schedule on monthly or weekly bases the job will not run (I can't find any attempt logged in cron.job_run_details or errors in database logs ) : E.G.

SELECT cron.schedule('test cron KO', '49 19 * * 4', 'VACUUM (FULL, VERBOSE) cron.job');
SELECT cron.schedule('test cron KO', '21 18 5 * *', 'VACUUM (FULL, VERBOSE) cron.job');

Do you have any idea what is the reason of this behaviour ?

Thank you,

Paolo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant