We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dd5acd + 18cd1ab commit 7c9db09Copy full SHA for 7c9db09
src/agent/api.rs
@@ -96,7 +96,10 @@ impl AgentApi {
96
} else if let Some(err) = err.downcast_ref::<::reqwest::Error>() {
97
err.is_timeout() || err.is_connect()
98
} else {
99
- false
+ // We retry these errors. Ideally it's something the
100
+ // server would handle, but that's (unfortunately) hard
101
+ // in practice.
102
+ format!("{:?}", err).contains("database is locked")
103
};
104
105
if retry {
0 commit comments