quipucords / yupana

Service app to process & upload data from quipucords and satellite to the host based inventory
GNU General Public License v3.0
4 stars 14 forks source link

fixes #23 - Improve Liveness and Readiness checks #334

Closed patilsuraj767 closed 3 years ago

patilsuraj767 commented 3 years ago

With this PR in status API /api/subscriptions/v1/status/ we will be checking if all the report processors/Threads are alive. If any of the report processor thread is exited then API will return 500 status code and liveness probe will get triggered.

codecov-io commented 3 years ago

Codecov Report

Merging #334 (b76e886) into master (1f89d83) will increase coverage by 0.01%. The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #334      +/-   ##
==========================================
+ Coverage   94.02%   94.04%   +0.01%     
==========================================
  Files          20       20              
  Lines        1373     1393      +20     
  Branches      155      158       +3     
==========================================
+ Hits         1291     1310      +19     
  Misses         58       58              
- Partials       24       25       +1     
Impacted Files Coverage Δ
yupana/processor/processor_utils.py 96.42% <80.00%> (-3.58%) :arrow_down:
yupana/api/status/view.py 100.00% <100.00%> (ø)
yupana/processor/report_consumer.py 75.96% <100.00%> (+0.37%) :arrow_up:
yupana/processor/report_processor.py 94.28% <100.00%> (+0.03%) :arrow_up:
yupana/processor/report_slice_processor.py 94.55% <100.00%> (+0.05%) :arrow_up:

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 c4ca931...b76e886. Read the comment docs.