aboutsummaryrefslogtreecommitdiff
path: root/src/util/background/mod.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-23 17:05:11 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-23 17:05:11 +0200
commit59b43914d4a9ae9a50ae79fee61b1a46bff941f9 (patch)
tree5ca8cdeb754b47a855d142891e41214b77e88c52 /src/util/background/mod.rs
parentf82cf164f5ab525560415355503c04315901a739 (diff)
downloadgarage-59b43914d4a9ae9a50ae79fee61b1a46bff941f9.tar.gz
garage-59b43914d4a9ae9a50ae79fee61b1a46bff941f9.zip
(to test) error reporting and throttling at higher layer
Diffstat (limited to 'src/util/background/mod.rs')
-rw-r--r--src/util/background/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/background/mod.rs b/src/util/background/mod.rs
index 92090a1a..f7e15b80 100644
--- a/src/util/background/mod.rs
+++ b/src/util/background/mod.rs
@@ -31,6 +31,9 @@ pub struct WorkerInfo {
pub name: String,
pub info: Option<String>,
pub status: WorkerStatus,
+ pub errors: usize,
+ pub consecutive_errors: usize,
+ pub last_error: Option<String>,
}
impl BackgroundRunner {