Retry Policy for 10, 20, 30 minutes

WIth temporal retry policy we can achieve retry time as 10, 20, 40 minutes with backoffCoefficient as 2,
but i need to achieve 10, 20, 30 minutes… how can it be achieved? using typescript

Hi @kishore_kumar

I believe you can set backoffCoefficient=1 and initialInterval to 10 minutes, so the time between retries will remain the same always.

  "retryPolicy": {
    "backoffCoefficient": 1,
    "initialInterval": 600000
  }

There is a simulator that can help with this

Antonio

hey @antonio.perez , The time between retries must be 10, 20, 30 minutes respectively, Not 10 always

Should it stop at 30? Or does it keep growing?

yes, maxim. It should stop at 30

you are right, sorry @kishore_kumar

Setting maximumInterval to 30 minutes, initial to 10 minutes and backoffCoefficient to 2 should work.


{
  "retryPolicy": {
    "backoffCoefficient": 2,
    "initialInterval": 60000,
    "maximumInterval": 180000
  }
}
1 Like