Log warning in case number of workers reaches maximum

This commit is contained in:
Felix Ableitner 2022-11-10 22:28:47 +01:00
parent dab34bc919
commit 34a41d327f
2 changed files with 4 additions and 1 deletions

2
Cargo.lock generated
View file

@ -4,7 +4,7 @@ version = 3
[[package]]
name = "activitypub_federation"
version = "0.2.2"
version = "0.2.3"
dependencies = [
"activitypub_federation_derive",
"activitystreams-kinds",

View file

@ -84,6 +84,9 @@ where
stats.dead.this_hour(),
stats.complete.this_hour()
);
if stats.running as u64 == instance.settings.worker_count {
warn!("Maximum number of activitypub workers reached. Consider increasing worker count to avoid federation delays");
}
}
}