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

Shut down cleanly when 'api serve' is interrupted #1219

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

refi64
Copy link
Contributor

@refi64 refi64 commented Sep 15, 2023

This will properly close the db and, more particularly, flush out any profile files being written. Otherwise, they can end up empty or truncated.

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #1219 (e1cc8cc) into master (18203c6) will increase coverage by 8.92%.
Report is 5 commits behind head on master.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##           master    #1219      +/-   ##
==========================================
+ Coverage   65.95%   74.87%   +8.92%     
==========================================
  Files         143      143              
  Lines       16192    16197       +5     
==========================================
+ Hits        10679    12128    +1449     
+ Misses       4760     3134    -1626     
- Partials      753      935     +182     
Files Coverage Δ
cmd/api_serve.go 71.08% <93.75%> (+38.65%) ⬆️

... and 32 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

This will properly close the db and, more particularly, flush out any
profile files being written. Otherwise, they can end up empty or
truncated.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
@refi64
Copy link
Contributor Author

refi64 commented Sep 25, 2023

Pushed a slightly cleaned up version.

@randombenj randombenj merged commit 11deb94 into aptly-dev:master Oct 24, 2023
4 checks passed
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