diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-23 17:05:11 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-23 17:05:11 +0200 |
commit | 59b43914d4a9ae9a50ae79fee61b1a46bff941f9 (patch) | |
tree | 5ca8cdeb754b47a855d142891e41214b77e88c52 /src/util/background/mod.rs | |
parent | f82cf164f5ab525560415355503c04315901a739 (diff) | |
download | garage-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.rs | 3 |
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 { |