Skip to content

Commit

Permalink
fix(prover): Do not exit on missing watcher data.
Browse files Browse the repository at this point in the history
ref ZKD-1855
  • Loading branch information
yorik committed Oct 17, 2024
1 parent 18ae3f9 commit c3ad3c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prover/crates/bin/prover_autoscaler/src/global/scaler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c3ad3c7

Please sign in to comment.