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

Restart pg_cron scheduler when terminating the background worker #286

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

marcocitus
Copy link
Member

@marcocitus marcocitus commented Sep 1, 2023

I think the proc_exit(0) was done at an early stage to have a way of disabling the background worker in case it went haywire. By now pg_cron is quite battle-tested and can be mostly disabled using cron.launch_active_jobs, and users often accidentally kill the scheduler.

Fixes #188

@marcocitus marcocitus changed the title Restart pg_cron when terminating the background worker Restart pg_cron scheduler when terminating the background worker Sep 1, 2023
@marcocitus marcocitus merged commit 9944eda into main Sep 4, 2023
1 check passed
@marcocitus marcocitus deleted the marcocitus/terminate branch September 4, 2023 09:11
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

Successfully merging this pull request may close these issues.

How to (re)load pg_cron scheduler
2 participants