aerosense-ai / data-gateway

Data influx for Aerosense.
https://www.aerosense.ai/
Other
3 stars 1 forks source link

Add multi-processing #30

Closed cortadocodes closed 2 years ago

cortadocodes commented 2 years ago

Summary

Convert data-gateway to run on multiple processes and make it more efficient to avoid serial port buffer overflows.

Note: the test coverage has appeared to drop because the test runner isn't taking into account code run in other processes - this will increase back to current levels once the runner is configured to do this.

Contents (#30)

New features

Enhancements

Fixes

Refactoring

Testing

codecov-commenter commented 2 years ago

Codecov Report

Merging #30 (cd8efc8) into main (edf6292) will decrease coverage by 14.94%. The diff coverage is 81.93%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #30       +/-   ##
===========================================
- Coverage   93.94%   78.99%   -14.95%     
===========================================
  Files          12       13        +1     
  Lines         661      719       +58     
===========================================
- Hits          621      568       -53     
- Misses         40      151      +111     
Impacted Files Coverage Δ
data_gateway/packet_reader.py 45.77% <56.33%> (-46.31%) :arrow_down:
data_gateway/cli.py 87.83% <88.88%> (-3.20%) :arrow_down:
data_gateway/routine.py 93.87% <88.88%> (-6.13%) :arrow_down:
data_gateway/data_gateway.py 94.62% <94.62%> (ø)
data_gateway/persistence.py 94.53% <95.83%> (-0.82%) :arrow_down:
data_gateway/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update eb1ee44...cd8efc8. Read the comment docs.