From c3ad3c75d548e0f512a0b96089393e0e985fc4ce Mon Sep 17 00:00:00 2001 From: Yury Akudovich Date: Thu, 17 Oct 2024 11:52:57 +0200 Subject: [PATCH] fix(prover): Do not exit on missing watcher data. ref ZKD-1855 --- prover/crates/bin/prover_autoscaler/src/global/scaler.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prover/crates/bin/prover_autoscaler/src/global/scaler.rs b/prover/crates/bin/prover_autoscaler/src/global/scaler.rs index 75c9e2e3e422..dd3f3cf1ad3a 100644 --- a/prover/crates/bin/prover_autoscaler/src/global/scaler.rs +++ b/prover/crates/bin/prover_autoscaler/src/global/scaler.rs @@ -305,7 +305,10 @@ impl Task for Scaler { let queue = self.queuer.get_queue().await.unwrap(); let guard = self.watcher.data.lock().await; - watcher::check_is_ready(&guard.is_ready)?; + if let Err(err) = watcher::check_is_ready(&guard.is_ready) { + tracing::warn!("Skipping Scaler run: {}", err); + return Ok(()); + } for (ns, ppv) in &self.namespaces { let q = queue.queue.get(ppv).cloned().unwrap_or(0);