Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
150 stars 63 forks source link

add warmup context #154

Closed YunchuWang closed 1 year ago

YunchuWang commented 1 year ago

Fix for https://github.com/Azure/azure-functions-python-worker/issues/1135. Adding warmup context class as part of context class for customers to access in warmup function parameters.

codecov[bot] commented 1 year ago

Codecov Report

Merging #154 (1ca7496) into dev (132b8da) will increase coverage by 0.44%. The diff coverage is 90.90%.

@@            Coverage Diff             @@
##              dev     #154      +/-   ##
==========================================
+ Coverage   89.69%   90.13%   +0.44%     
==========================================
  Files          50       50              
  Lines        2921     3002      +81     
  Branches      399      400       +1     
==========================================
+ Hits         2620     2706      +86     
+ Misses        223      220       -3     
+ Partials       78       76       -2     
Flag Coverage Δ
unittests 90.10% <90.90%> (+0.41%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
azure/functions/_eventhub.py 92.10% <ø> (ø)
azure/functions/_http.py 93.04% <ø> (+0.73%) :arrow_up:
azure/functions/kafka.py 91.79% <ø> (ø)
azure/functions/servicebus.py 85.93% <ø> (ø)
azure/functions/_abc.py 75.91% <83.33%> (+0.65%) :arrow_up:
azure/functions/decorators/generic.py 100.00% <100.00%> (ø)
azure/functions/decorators/servicebus.py 100.00% <100.00%> (ø)
azure/functions/blob.py 100.00% <0.00%> (ø)
azure/functions/decorators/function_app.py 99.44% <0.00%> (+0.04%) :arrow_up:
azure/functions/decorators/utils.py 97.46% <0.00%> (+0.06%) :arrow_up:
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.