Skip to content

v0.11.0

Latest

Choose a tag to compare

@slinkydeveloper slinkydeveloper released this 21 Oct 16:18

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