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
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 35/100
microsoft/durabletask-java#285 ·
-
Needs: Triage :mag:
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
microsoft/durabletask-java#276 ·
-
Enhancement
microsoft/durabletask-java#274 · リアクション 1 件 · 担当者 2 名 ·