Azure / azure-functions-java-library

Contains annotations for writing Azure Functions in Java
MIT License
42 stars 42 forks source link

Ability to set retry behaviors from environment variable #136

Open jeffhollan opened 3 years ago

jeffhollan commented 3 years ago

Today when using bindings I can pop in the %syntax% to load in a value from environment variable. I can't do that with retry policies.

  "retry": {
      "strategy": "fixedDelay",
      "maxRetryCount": 100,
      "delayInterval": "%delay_interval%"
  }

Would be good to support resolving from env.

Workaround today is to use the host.json file, and define the value using the host.json documented env path:

"AzureFunctionsJobHostretrydelayInterval": "00:00:05"

emily-coffin commented 11 months ago

Is there any progress on this? We are looking for a similar solution.