Skip to content

refactor: multiprocessing helper#222

Draft
NguyenHoangSon96 wants to merge 3 commits into
mainfrom
refactor/multiprocessing-helper
Draft

refactor: multiprocessing helper#222
NguyenHoangSon96 wants to merge 3 commits into
mainfrom
refactor/multiprocessing-helper

Conversation

@NguyenHoangSon96

Copy link
Copy Markdown
Contributor

Closes #

Proposed Changes

Briefly describe your proposed changes:

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • Tests pass
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@NguyenHoangSon96 NguyenHoangSon96 self-assigned this Jul 14, 2026
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.85345% with 61 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.12%. Comparing base (a022daa) to head (a206151).

Files with missing lines Patch % Lines
influxdb_client_3/write_client/client/write_api.py 85.96% 40 Missing ⚠️
...nfluxdb_client_3/write_client/_sync/rest_client.py 90.07% 13 Missing ⚠️
...write_client/client/util/multiprocessing_helper.py 25.00% 6 Missing ⚠️
influxdb_client_3/__init__.py 94.73% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #222      +/-   ##
==========================================
+ Coverage   78.90%   87.12%   +8.22%     
==========================================
  Files          36       28       -8     
  Lines        2607     2082     -525     
==========================================
- Hits         2057     1814     -243     
+ Misses        550      268     -282     

☔ 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.

bucket=self.database,
record=f"{measurement},tag=a value=\"number{x}\" {time.time_ns()}"
)
writer.__del__()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't forget that ideally __del__() should not be called directly, and that instead a with block should be used here.

https://github.com/InfluxCommunity/influxdb3-python/pull/217/changes#r3507988624

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