Skip to content

Comments

Restart pg_cron scheduler when terminating the background worker#286

Merged
marcocitus merged 1 commit intomainfrom
marcocitus/terminate
Sep 4, 2023
Merged

Restart pg_cron scheduler when terminating the background worker#286
marcocitus merged 1 commit intomainfrom
marcocitus/terminate

Conversation

@marcocitus
Copy link
Contributor

@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
@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