DD-DeCaF / simulations

Model service which takes care of adjusting model according to incoming messages and returns information such as fluxes, theoretical maximum yields, etc
Apache License 2.0
0 stars 1 forks source link

Use sync gunicorn workers #119

Closed kvikshaug closed 5 years ago

kvikshaug commented 5 years ago

This ensures that cached model instances are bound to a single request at a time and hence the context manager can be used to undo modifications. This avoids the copy operations and should speed up modification and simulation requests substantially.

codecov-io commented 5 years ago

Codecov Report

Merging #119 into devel will increase coverage by 0.03%. The diff coverage is 69.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel     #119      +/-   ##
==========================================
+ Coverage   72.33%   72.37%   +0.03%     
==========================================
  Files          20       20              
  Lines         694      695       +1     
==========================================
+ Hits          502      503       +1     
  Misses        192      192
Impacted Files Coverage Δ
src/model/resources.py 64.6% <69.56%> (+0.31%) :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 c1ea934...78537a8. Read the comment docs.