-
Notifications
You must be signed in to change notification settings - Fork 891
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 scheduler on error #6195
Restart scheduler on error #6195
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6195 +/- ##
==========================================
+ Coverage 65.04% 65.07% +0.03%
==========================================
Files 246 246
Lines 56955 56957 +2
Branches 12621 12621
==========================================
+ Hits 37045 37064 +19
Misses 18042 18042
+ Partials 1868 1851 -17
... and 55 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@antekresic, @jnidzwetzki: please review this pull request.
|
c1784a0
to
08cbdd2
Compare
Have you seen the
|
b350662
to
0a8fefa
Compare
Hmm... I though I'd fixed it. Managed to fix it locally: let's see if it works now. |
d396f4b
to
f9dfb12
Compare
For some reason. |
If the scheduler receives an error, it will never restart again since `bgw_restart_time` is set to `BGW_NEVER_RESTART`, which will prevent all jobs from executing. This commit fixes the issue by adding a GUC that can be set to the restart time for the scheduler, and set the default to 30 seconds. It also adds some additional variables to be able to shutdown the scheduler with a non-zero exit code, which allows the restart functionality to be tested, as well as tests. Fixes timescale#5091
f9dfb12
to
6791e70
Compare
Automated backport to 2.12.x not done: cherry-pick failed. Git status
|
If the scheduler receives an error, it will never restart again since
bgw_restart_time
is set toBGW_NEVER_RESTART
, which will prevent all jobs from executing.This commit fixes the issue by adding a GUC that can be set to the restart time for the scheduler, and set the default to 30 seconds. It also adds some additional variables to be able to shutdown the scheduler with a non-zero exit code, which allows the restart functionality to be tested.
Fixes #5091