dapr / python-sdk

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

Add actor state ttl support #704

Closed KentHsu closed 3 months ago

KentHsu commented 4 months ago

Description

This PR follows go-sdk's implementation to support actor state TTL feature Added set_state_ttl method, updated save_state method in state_manager and added more tests Updated state_change and state_async_provider with TTL and fix test_save_state

Issue reference

Please reference the issue this PR will close: #560

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

berndverst commented 3 months ago

Apparently the lint changes might be caused by our new autoformatter. Let me see if I can revert that :)

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86.35%. Comparing base (fc0e9d1) to head (208484c). Report is 19 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #704 +/- ## ========================================== - Coverage 86.37% 86.35% -0.02% ========================================== Files 79 82 +3 Lines 4094 4193 +99 ========================================== + Hits 3536 3621 +85 - Misses 558 572 +14 ```

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

marcduiker commented 3 months ago

@holopin-bot @KentHsu Thank you!

holopin-bot[bot] commented 3 months ago

Congratulations @KentHsu, you just earned a badge! Here it is: https://holopin.io/claim/clvwgbhp1125910fjmiu9udpu8

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!