dapr / python-sdk

Dapr SDK for Python
Apache License 2.0
222 stars 125 forks source link

Removes explicit `dapr stop` from examples for short-running apps #674

Closed elena-kolevska closed 7 months ago

elena-kolevska commented 7 months ago

Description

While validating the 1.13 rc1 I ran into the following 3 issues:

This PR addresses the first two issues. The reason for this is a change of behaviour in Dapr, which now properly catches SIGTERM signals. The examples use dapr run to run the apps and the dapr cli sends a SIGTERM when an application finishes execution. That's why the tests broke now. This behaviour is only evident for short-running scripts.

I updated the examples to not try to stop the dapr instance explicitly.

Checklist

codecov[bot] commented 7 months ago

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (fc0e9d1) 86.37% compared to head (e656227) 86.18%. Report is 7 commits behind head on main.

Files Patch % Lines
dapr/clients/health.py 72.72% 9 Missing :warning:
dapr/aio/clients/grpc/client.py 92.15% 4 Missing :warning:
dapr/actor/client/proxy.py 57.14% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #674 +/- ## ========================================== - Coverage 86.37% 86.18% -0.19% ========================================== Files 79 82 +3 Lines 4094 4170 +76 ========================================== + Hits 3536 3594 +58 - Misses 558 576 +18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.