mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-10-31 22:08:52 +00:00
Log warning in case number of workers reaches maximum
This commit is contained in:
parent
dab34bc919
commit
34a41d327f
2 changed files with 4 additions and 1 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -4,7 +4,7 @@ version = 3
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "activitypub_federation"
|
name = "activitypub_federation"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"activitypub_federation_derive",
|
"activitypub_federation_derive",
|
||||||
"activitystreams-kinds",
|
"activitystreams-kinds",
|
||||||
|
|
|
@ -84,6 +84,9 @@ where
|
||||||
stats.dead.this_hour(),
|
stats.dead.this_hour(),
|
||||||
stats.complete.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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue