Azure / Azure/azure-functions-java-library
Ability to set retry behaviors from environment variable
- 主要语言
- Java
- 星标
- 45
- 派生
- 49
- PR 合并指标
- 30 天内没有已合并 PR
描述
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:
"AzureFunctionsJobHost__retry__delayInterval": "00:00:05"
贡献指南
这个仓库没有索引到贡献指南
调研方向
该 issue 未指明源文件或测试;首先定位 Java bindings 的重试策略处理逻辑以及现有的环境变量解析路径。将其与 host.json 中记录的环境路径进行比较,然后验证诸如 %delay_interval% 这样的占位符是否会针对 retry.delayInterval 进行解析,并为所请求的行为添加覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, java
- 领域
- backend, cloud
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100