threefoldtecharchive / 0-robot

Distributed live cycle management system
Apache License 2.0
0 stars 0 forks source link

improve the gracefull stop of the robot #30

Closed zaibon closed 6 years ago

zaibon commented 6 years ago

when stopping it now does:

  1. stop receiving requests on the REST API
  2. wait all currently active request finishes
  3. stop all services
  4. wait all services stop gracefully
  5. serialize all services state to disk
  6. exit the process
codecov-io commented 6 years ago

Codecov Report

Merging #30 into development will decrease coverage by <1%. The diff coverage is 4%.

Impacted file tree graph

@@             Coverage Diff             @@
##           development    #30    +/-   ##
===========================================
- Coverage           21%    21%    -1%     
===========================================
  Files              147    151     +4     
  Lines             6135   6664   +529     
===========================================
+ Hits              1332   1422    +90     
- Misses            4803   5242   +439
Impacted Files Coverage Δ
zerorobot/template/base.py 0% <0%> (ø) :arrow_up:
tests/test_robot.py 87% <0%> (ø) :arrow_up:
zerorobot/task/task_list.py 0% <0%> (ø) :arrow_up:
zerorobot/robot/robot.py 0% <0%> (ø) :arrow_up:
tests/test_service_proxy.py 54% <100%> (+3%) :arrow_up:
tests/test_god_mode.py 63% <100%> (+3%) :arrow_up:
tests/test_zrobot_client.py 74% <100%> (+8%) :arrow_up:
zerorobot/config/data_repo.py 0% <0%> (ø) :arrow_up:
tests/test_service_state.py 100% <0%> (ø) :arrow_up:
... and 20 more

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 2784501...8a62502. Read the comment docs.