Should retries be automatic? #558
Replies: 6 comments
-
cargo dependencies |
Beta Was this translation helpful? Give feedback.
-
|
If you can also include the output of tracing, that would be great. If you return OK, it should run only once as seen in this test. In the case of error, it will retry 5 times by default which is set here. If you wanna customize the number of retries, you should use |
Beta Was this translation helpful? Give feedback.
-
It seems that the function is supposed to return a type like &'static str or String, rather than a Result type. Shouldn't we avoid using anyhow::Result<(), Error> in this case? |
Beta Was this translation helpful? Give feedback.
-
|
No, you can use anything that implements |
Beta Was this translation helpful? Give feedback.
-
|
I will be moving this into discussions because I dont believe there is a bug as reported. |
Beta Was this translation helpful? Give feedback.
-
|
but when i return Ok,it also run 5 times, the mysql record last_error is {"Ok": null } |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
when i use mysql backend, i found something is error;
when i return Ok(()) or Err,they will retry 5 times, i dont konwn why ?
Beta Was this translation helpful? Give feedback.
All reactions