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


##########
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 example. I took option 2.
   
   `retry-wait-interval` still allows a positive whole number of milliseconds, 
including `100 ms`. A positive value with a sub-millisecond remainder is still 
rejected.
   
   The recorded unit is now whole milliseconds on both Java and Python. The 
metric is `retryWaitMs`, and the chat and decision response field is 
`total_retry_wait_ms` (`getTotalRetryWaitMs()` in Java). Each sleep adds its 
full millisecond count, and those counts add across requests. They are not 
truncated to whole seconds first. With `max-retries: 1` and 
`retry-wait-interval: 100 ms`, one retry contributes 100, and 10,000 such 
requests contribute 1,000,000 ms (1,000 seconds), not zero. A `1 s` wait 
reports 1000. The old `retryWaitSec` and `total_retry_wait_sec` names are 
removed so the unit is not described as seconds.
   
   The configuration, monitoring, and decision-model docs now describe that 
millisecond total.
   



-- 
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