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

Feat handle sigterm #350

Closed
wants to merge 8 commits into from
Closed

Conversation

kentbull
Copy link
Contributor

missed the requests package.

lenkan and others added 8 commits December 11, 2024 14:27
This uses lifecycle methods appropriately to set up the signal handlers, mark the GracefulShutdownDoer as done when the shutdown flag is set, and tear down the Doist in the Doer.exit() method
Since the Doist loop listens for the KeyboardInterrupt exception then it effectively handles the Ctrl-C SigInt interrupt already which means the shutdown handler only has to handle the SigTerm signal.
feat: shut down agents gracefully
@kentbull kentbull closed this Jan 13, 2025
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 71.32867% with 41 lines in your changes missing coverage. Please review.

Project coverage is 93.51%. Comparing base (18d3ad7) to head (170398c).
Report is 45 commits behind head on main.

Files with missing lines Patch % Lines
src/keria/app/agenting.py 70.12% 23 Missing ⚠️
src/keria/app/serving.py 39.28% 17 Missing ⚠️
tests/app/test_agenting.py 97.36% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
+ Coverage   93.06%   93.51%   +0.45%     
==========================================
  Files          36       37       +1     
  Lines        7121     8263    +1142     
==========================================
+ Hits         6627     7727    +1100     
- Misses        494      536      +42     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kentbull kentbull deleted the feat-handle-sigterm branch January 13, 2025 15:43
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.

2 participants