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

Install a SIGTERM handler in addition to SIGINT #1246

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

prandla
Copy link
Contributor

@prandla prandla commented Nov 19, 2023

This allows cleanly terminating CMS by sending it SIGTERM, which is what e.g. Docker or systemd do.

I ran into this while using docker-compose, which when asked to stop a container will send it SIGTERM, then wait 10 seconds, and then send SIGKILL. I think terminating CMS via SIGKILL isn't particuarly nice (and also I don't like waiting 10 seconds every time I want to restart a container).

This allows cleanly terminating CMS by sending it SIGTERM, which is what
e.g. Docker or systemd do.
Copy link

codecov bot commented Nov 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (7db9aa1) 69.45% compared to head (56942dd) 69.45%.

Files Patch % Lines
cmsranking/RankingWebServer.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1246      +/-   ##
==========================================
- Coverage   69.45%   69.45%   -0.01%     
==========================================
  Files         328      328              
  Lines       26196    26201       +5     
==========================================
+ Hits        18195    18198       +3     
- Misses       8001     8003       +2     
Flag Coverage Δ
functionaltests 47.06% <80.00%> (-0.15%) ⬇️
unittests 56.75% <20.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@wil93 wil93 merged commit c88c1e9 into cms-dev:master Jan 18, 2024
3 checks passed
@prandla prandla deleted the bugfix/sigterm-handler branch September 28, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants