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

Add keepalive SQL query to Notifier #1423

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

bensheldon
Copy link
Owner

@bensheldon bensheldon commented Jul 15, 2024

Related to #1417

Add a noop SQL query every 10 seconds to keep the connection alive. I expect that this could surface more database exceptions that are currently being ignored because the socket isn't actually being exercised solely by running wait_for_notify.

I'm not sure if it matters if this is being run after wait_for_notify or if it should be before in the loop. Either way this loop should be fairly tight (once every second).

@bensheldon bensheldon added the enhancement New feature or request label Jul 15, 2024
@bensheldon bensheldon merged commit 2dcb518 into main Jul 15, 2024
14 checks passed
@bensheldon bensheldon deleted the fix-notifier-keepalives branch July 15, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

1 participant