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.
1 parent 5ebf483 commit 18cd1abCopy full SHA for 18cd1ab
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