Incorrect retry count returned in case of Activity Function
@kaibocai 已經在處理了。
開始於 2023年9月27日。
評估
這個 Issue 還沒有評估資料。
描述
I have an Activity Function which has a retry count set to 3. This is intentionally made to throw an exception and retry. Now, I am trying to get the retry count in the Activity Function but it always returns 0.
Here is a sample code I am trying :
public String aepHTTPPollingOperator(@DurableActivityTrigger(name = "input", dataType = "string") String input,
ExecutionContext context) throws JsonMappingException, JsonProcessingException, Exception {
System.out.println("Context Retry : " + context.getRetryContext().getRetrycount()); //always prints 0
throw new RuntimeException("test exception")
}
This is how I am calling this activity :
RetryPolicy policy = new RetryPolicy(3, 30);
TaskOptions options = new TaskOptions(policy);
ctx.callActivity("ActivityName", activityInputQO.toString(), options, String.class));
- 主要語言
- Java
- 星號
- 29
- 分支
- 18
- 平均合併
- 54 分鐘
- 30 天內合併 PR
- 1
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/durabletask-java 的其他 Issue
-
Needs: Triage :mag:
難度 4/5 3-5 天 新手友好度 48/100
microsoft/durabletask-java#303 ·
-
Needs: Triage :mag:
難度 4/5 3-5 天 新手友好度 45/100
microsoft/durabletask-java#290 · 2 則留言 ·
-
Needs: Triage :mag:
難度 5/5 一週以上 新手友好度 35/100
microsoft/durabletask-java#285 ·
-
Needs: Triage :mag:
難度 3/5 1-2 天 新手友好度 68/100
microsoft/durabletask-java#276 ·
-
Wrap gRPC StatusRuntimeException across all client and worker gRPC calls可能重新可做 @bachuv 於 172 天前認領,目前沒有進行中的 PR。 未關閉Enhancement
microsoft/durabletask-java#274 · 1 個 reaction · 已指派 2 人 ·
查看 microsoft/durabletask-java 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
OpenAPITools/openapi-generator#25014 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
AloisSeckar/demos-java#380 ·
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
openhab/openhab-core#5847 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
appsmithorg/appsmith#42297 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100