Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sgl-router/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ impl Router {
if let Ok(mut queue) = running_queue.lock() {
if let Some(count) = queue.get_mut(worker_url) {
*count = count.saturating_sub(1);
gauge!("sgl_router_running_requests", "worker" => worker_url.to_string())
.set(*count as f64);
}
}
}
Expand Down Expand Up @@ -874,6 +876,7 @@ impl Router {
let mut locked_queue = running_queue.lock().unwrap();
let count = locked_queue.get_mut(&worker_url).unwrap();
*count = count.saturating_sub(1);
gauge!("sgl_router_running_requests", "worker" => worker_url.to_string()).set(*count as f64);
debug!("Streaming is done!!")
}
}),
Expand Down
Loading