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

Correctly handle exceptions during heartbeat check #208

Merged
merged 1 commit into from Jul 7, 2022

Conversation

CodeDrivenMitch
Copy link
Contributor

@CodeDrivenMitch CodeDrivenMitch commented Jul 6, 2022

Exceptions were not caught during sending the heartbeat. This can interrupt scheduling of the next check, effectively disabling heartbeats altogether.

This PR adds a try/catch block with logging about the nature of the error, to improve resiliency

@sonarcloud
Copy link

sonarcloud bot commented Jul 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@CodeDrivenMitch CodeDrivenMitch changed the title Correctly handle exceptions if they happen during or before schedulin… Correctly handle exceptions during heartbeat check Jul 6, 2022
@CodeDrivenMitch CodeDrivenMitch self-assigned this Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants