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

monitor and restart Logger process #291

Closed
wants to merge 8 commits into from

Conversation

aniketmaurya
Copy link
Collaborator

@aniketmaurya aniketmaurya commented Sep 23, 2024

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

⚠️ How does this PR impact the user? ⚠️

Fixes #289

Loggers can stuck while processing and queue will pile up. This PR tries to resolve that by detecting stuck loggers

@lantiga please let me know what do you think about this approach?


TODO:

  • Tests

What does this PR do?

This PR introduces a Process monitor for Logger process and restart the process if a Logger is stuck. This prevents the logger queue from piling up.

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.

Project coverage is 95%. Comparing base (b9ecbdb) to head (65c5f18).
Report is 6 commits behind head on main.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #291   +/-   ##
===================================
- Coverage    95%    95%   -0%     
===================================
  Files        19     19           
  Lines      1244   1263   +19     
===================================
+ Hits       1182   1197   +15     
- Misses       62     66    +4     

@aniketmaurya
Copy link
Collaborator Author

@lantiga could you please do an architecture review here? Or do you have a suggestion to handle this in a different way?

@aniketmaurya aniketmaurya added the enhancement New feature or request label Sep 26, 2024
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
None yet
Development

Successfully merging this pull request may close these issues.

Handle case when Logger.process is stuck
1 participant