Title: Apply DurableHttpRequest.HttpRetryOptions when scheduling durable HTTP retries · Issue #303 · microsoft/durabletask-java · GitHub
Open Graph Title: Apply DurableHttpRequest.HttpRetryOptions when scheduling durable HTTP retries · Issue #303 · microsoft/durabletask-java
X Title: Apply DurableHttpRequest.HttpRetryOptions when scheduling durable HTTP retries · Issue #303 · microsoft/durabletask-java
Description: HttpRetryOptions is exposed on DurableHttpRequest, but DurableHttp.callHttp does not use that configuration to schedule retries unless the caller separately supplies TaskOptions. This is the Java retry-scheduling follow-up to Azure/azure...
Open Graph Description: HttpRetryOptions is exposed on DurableHttpRequest, but DurableHttp.callHttp does not use that configuration to schedule retries unless the caller separately supplies TaskOptions. This is the Java r...
X Description: HttpRetryOptions is exposed on DurableHttpRequest, but DurableHttp.callHttp does not use that configuration to schedule retries unless the caller separately supplies TaskOptions. This is the Java r...
Opengraph URL: https://github.com/microsoft/durabletask-java/issues/303
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Apply DurableHttpRequest.HttpRetryOptions when scheduling durable HTTP retries","articleBody":"`HttpRetryOptions` is exposed on `DurableHttpRequest`, but `DurableHttp.callHttp` does not use that configuration to schedule retries unless the caller separately supplies `TaskOptions`. This is the Java retry-scheduling follow-up to Azure/azure-functions-durable-extension#1984, not a request to add a second HTTP API or retry-options type.\n\n## Current behavior\n\nChecked v1.9.0 and `main` at `cfdfbf505ed0c4b1b5e9d39a55504650f1dd09e8`:\n\n- [`HttpRetryOptions`](https://github.com/microsoft/durabletask-java/blob/cfdfbf505ed0c4b1b5e9d39a55504650f1dd09e8/client/src/main/java/com/microsoft/durabletask/HttpRetryOptions.java#L17-L75) exposes intervals, maximum attempts, backoff, retry timeout, and status-code selection.\n- `DurableHttpRequest` serializes those options under `retryOptions` for the HTTP activity.\n- [`DurableHttp.callHttp(ctx, request)`](https://github.com/microsoft/durabletask-java/blob/cfdfbf505ed0c4b1b5e9d39a55504650f1dd09e8/client/src/main/java/com/microsoft/durabletask/DurableHttp.java#L69-L97) delegates with null `TaskOptions`. The implementation then calls `ctx.callActivity` without a retry policy; it does not derive one from `request.getHttpRetryOptions()`.\n- The extension's HTTP activity uses the configured status codes to turn matching responses into failures, but durable retry scheduling is separate from that failure classification.\n\nConsequently, the code path for setting only the request's `HttpRetryOptions` does not schedule the configured retry attempts. Supplying a separate `TaskOptions`/`RetryPolicy` can schedule retries, but duplicates configuration and leaves the request-level attempt/backoff settings unapplied.\n\nThis finding is based on source-path inspection; an end-to-end failure/retry reproduction has not been executed.\n\n## Reproduction scenario\n\n1. Configure a `DurableHttpRequest` with `HttpRetryOptions` specifying three attempts and HTTP 503 as retryable.\n2. Call `ctx.callHttp(request)` without separate `TaskOptions`.\n3. Use an endpoint that returns 503 for the first attempt and 200 for the next attempt.\n4. Verify whether the orchestration schedules the second request using the request's retry policy rather than failing after the first HTTP activity.\n\n## Acceptance Criteria\n\n- [ ] Apply the request's `HttpRetryOptions` to durable retry scheduling when no explicit scheduling override is supplied.\n- [ ] Honor attempt limits, first/max intervals, backoff, and retry timeout, while retaining HTTP-status-code filtering.\n- [ ] Define and document precedence when explicit `TaskOptions` and request-level HTTP retry options are both supplied.\n- [ ] Preserve existing behavior when retry options are omitted.\n- [ ] Add coverage for request-only retry configuration, retry-then-success, exhaustion, excluded status codes, transport failures, and explicit `TaskOptions` interaction.\n- [ ] Update API documentation/examples so callers do not need two inconsistent policies for one HTTP request.\n\n## Related\n\n- Original cross-language tracker: Azure/azure-functions-durable-extension#1984.\n- Existing broad HTTP support tracker: microsoft/durabletask-java#39.\n- HTTP API implementation: microsoft/durabletask-java#271.","author":{"url":"https://github.com/YunchuWang","@type":"Person","name":"YunchuWang"},"datePublished":"2026-09-17T19:18:34Z","url":"https://github.com/microsoft/durabletask-java/issues/303"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a0413351-9065-6a00-fbc0-ca9387fc0209 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9700:13B91D:64B01:81F70:6AFE31E6 |
| html-safe-nonce | b5e494714b6852283e661a0a3479622ccc9604573c5e07210ac5072a9bbc83fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzAwOjEzQjkxRDo2NEIwMTo4MUY3MDo2QUZFMzFFNiIsInZpc2l0b3JfaWQiOiIyNzIxMTY0MzA0MTI3NTA0ODcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2502f5966af22c37c808bee87912d4ef3bfebf25aac801122a6ea73d7bcfbdd1 |
| hovercard-subject-tag | issue:5491719397 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-java/303/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2bcaef5d7e9bbd97675c7cdfa096b4bb80609abf30b0525c207d93ab6baddbca/microsoft/durabletask-java/issues/303 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2bcaef5d7e9bbd97675c7cdfa096b4bb80609abf30b0525c207d93ab6baddbca/microsoft/durabletask-java/issues/303 |
| og:image:alt | HttpRetryOptions is exposed on DurableHttpRequest, but DurableHttp.callHttp does not use that configuration to schedule retries unless the caller separately supplies TaskOptions. This is the Java r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | YunchuWang |
| hostname | github.com |
| expected-hostname | github.com |
| None | d70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/durabletask-java git https://github.com/microsoft/durabletask-java.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 452823832 |
| octolytics-dimension-repository_nwo | microsoft/durabletask-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 452823832 |
| octolytics-dimension-repository_network_root_nwo | microsoft/durabletask-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ccb88d9c92abe69245b429398c8a57ae87070c7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width