Skip to content

fix: drain executor before closing Kafka producer on exit - #117

Merged
guillermodotn merged 1 commit into
release-engineering:mainfrom
guillermodotn:main
Jul 29, 2026
Merged

guillermodotn merged 1 commit into
release-engineering:mainfrom
guillermodotn:main

Conversation

@guillermodotn

Copy link
Copy Markdown
Contributor

Fixes a shutdown race where the Kafka producer could be closed while the messaging thread was still sending.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.84%. Comparing base (3da8072) to head (9606175).

Files with missing lines Patch % Lines
cts/messaging.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #117      +/-   ##
==========================================
- Coverage   83.95%   83.84%   -0.12%     
==========================================
  Files          13       13              
  Lines        1371     1374       +3     
==========================================
+ Hits         1151     1152       +1     
- Misses        220      222       +2     
Flag Coverage Δ
unit-tests 83.84% <50.00%> (-0.12%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@guillermodotn
guillermodotn merged commit f9963e2 into release-engineering:main Jul 29, 2026
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.

3 participants