Unverified Commit 7b16480a authored by Yan Ru Pei's avatar Yan Ru Pei Committed by GitHub
Browse files

chore: warn out request rejection (#6222)


Signed-off-by: default avatarPeaBrane <yanrpei@gmail.com>
parent 937398cf
......@@ -314,6 +314,11 @@ where
// Check if we actually have any instances at all
let all_instances = self.client.instance_ids();
if !all_instances.is_empty() {
tracing::warn!(
instance_id,
total_workers = all_instances.len(),
"Rejecting request: all workers are busy"
);
return Err(PipelineError::ServiceOverloaded(
"All workers are busy, please retry later".to_string(),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment