eemario commented on code in PR #1386:
URL: https://github.com/apache/flink-agents/pull/1386#discussion_r4582408740


##########
docs/content/docs/operations/configuration.md:
##########
@@ -219,7 +227,7 @@ for retry metrics.
 | `decision.async` | true | boolean | Enable durable async execution for 
built-in Decision Model calls. `false` selects synchronous execution. |
 | `max-retries` | 0 | int | Maximum retries after the initial attempt of a 
built-in Chat or Decision Model call, including routing judge calls. 
Non-positive values disable retries. |
 | `rag.async` | true | boolean | Enable durable async execution for 
vector-store queries made by the built-in context retrieval Action. `false` 
selects synchronous execution. |
-| `retry-wait-interval` | 1 | int | Base wait in seconds between retries 
controlled by `max-retries`. The wait before retry N is `retry-wait-interval * 
2^(N-1)`. Non-positive values retry without waiting. |
+| `retry-wait-interval` | `1 s` | duration | Base wait between retries 
controlled by `max-retries`. The wait before retry N is this duration 
multiplied by `2^(N-1)`. A zero or negative duration retries without waiting. |

Review Comment:
   Thank you for the update! The current implementation truncates each retry 
wait to whole seconds before accumulation, which can undercount the total. For 
example, with `max-retries: 1` and `retry-wait-interval: 100 ms`, 10,000 
requests that each retry once would accumulate 1,000 seconds of backoff, while 
`retryWaitSec` would still report zero.
   
   Could we make the precision consistent in one of two ways?
   
   1. Restrict positive retry intervals to whole seconds, with explicit 
validation, and retain the existing seconds-based statistics.
   2. Keep millisecond intervals and preserve that precision throughout 
accumulation and reporting, including metrics and response event fields. 
Truncating each request’s total to whole seconds before updating the counter 
would still lose sub-second waits across requests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to