Skip to content

Releases: restatedev/sdk-python

v0.11.0

21 Oct 16:18

Choose a tag to compare

New features

  • You can configure more retry options for ctx.run_typed:
ctx.run_typed("payment", payment, RunOptions(
    # Initial retry interval
    initial_retry_interval=timedelta(milliseconds=100),
    # Retry policies are exponential, the retry interval will double on each attempt
    retry_interval_factor=2.0,
    # Maximum retry interval
    max_retry_interval=timedelta(seconds=10),
    # Max duration of retries before giving up
    max_duration=timedelta(minutes=5),
    # Max attempts (including the initial) before giving up
    max_attempts=10,
))
  • You can now provide a name to sleep, you'll be able to see this name in the UI.

Notable changes

  • When suspending, the SDK will now throw an asyncio.CancelledError, instead of the previously thrown custom error. Catch this exception only if you need to cleanup some external resources between execution attempts.

What's Changed

Full Changelog: v0.10.1...v0.11.0

v0.10.2

22 Sep 17:38

Choose a tag to compare

Removed typing_extensions dependency.

Full Changelog: v0.10.1...v0.10.2

v0.10.1

22 Sep 11:32

Choose a tag to compare

What's Changed

Full Changelog: v0.10.0...v0.10.1

v0.10.0

16 Sep 13:01

Choose a tag to compare

Invocation retry policy

When used with Restate 1.5, you can now configure the invocation retry policy from the SDK directly. See https://github.com/restatedev/restate/releases/tag/v1.5.0 for more details on the new invocation retry policy configuration.

What's Changed

Full Changelog: v0.9.1...v0.10.0

v0.9.1

29 Aug 14:15

Choose a tag to compare

What's Changed

Full Changelog: v0.9.0...v0.9.1

v0.9.0

28 Aug 14:59

Choose a tag to compare

New features ✨

  • ctx.random() and ctx.uuid() for deterministic random and uuid. by @slinkydeveloper in #120
  • Add ctx.time() as wrapper around ctx.run(time.time) by @slinkydeveloper in #121
  • Integration with standard library logging module: replay aware logging filter restate.RestateLoggingFilter and log factory restate.getLogger() by @slinkydeveloper in #122

Full Changelog: v0.8.1...v0.9.0

v0.8.1

17 Jul 20:30
29d1cb6

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.8.0...v0.8.1

v0.8.0

02 Jul 21:02

Choose a tag to compare

  • Introduce new Service/Object/Workflow constructor fields and the decorator fields inactivity_timeout, abort_timeout, journal_retention, idempotency_retention, ingress_private, workflow_retention. Please note these work only from Restate 1.4 onward. Check the in-code documentation for more details.
  • Improved error messages

What's Changed

New Contributors

Full Changelog: v0.7.3...v0.8.0

v0.7.2

19 May 15:52

Choose a tag to compare

What's Changed

Full Changelog: v0.7.1...v0.7.2

v0.7.1

05 May 10:08

Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.7.1