microsoft / durabletask-python

A Durable Task Python SDK compatible with Dapr Workflow and its underlying Durable Task engine
MIT License
17 stars 8 forks source link

Retry policies implementation #11

Closed DeepanshuA closed 11 months ago

DeepanshuA commented 1 year ago

This PR introduces retry policies.

Retry Policies can have following attributes:

  1. First Retry Interval
  2. Max Number Of Attempts
  3. Backoff Coefficient
  4. Max Retry Interval
  5. Retry Timeout

Once this PR is merged, would need to incorporate Docs also for Retry Policy and attach the Design approach taken for it.

DeepanshuA commented 1 year ago

One thing I'm concerned about with this PR is whether it correctly handles cases where retry policies are mixed with when_all and when_any use cases. Can we add some test cases that cover these scenarios?

now, I have added tests for when_any and when_all with retryable task.

DeepanshuA commented 11 months ago

@cgillum Please review this PR. It has been a quite stretched PR time-wise. I have incorporated review comments.