mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
queue: Allow sharding user_activity worker.
This follows the existing patterns for the sharded mobile notifications worker.
This commit is contained in:
@@ -62,6 +62,10 @@ for queue_name, count in consumers.items():
|
||||
target_count = int(
|
||||
get_config(config_file, "application_server", "mobile_notification_shards", "1")
|
||||
)
|
||||
elif queue_name == "user_activity":
|
||||
target_count = int(
|
||||
get_config(config_file, "application_server", "user_activity_shards", "1")
|
||||
)
|
||||
else:
|
||||
target_count = int(
|
||||
get_config(config_file, "application_server", f"{queue_name}_workers", "1")
|
||||
|
||||
Reference in New Issue
Block a user