mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
commentstree_q: Process up to 200 items at a time
When precomputing comment sorts the queues can back up. Hopefully this will let them process faster.
This commit is contained in:
@@ -1716,7 +1716,7 @@ def run_new_comments(limit=1000):
|
||||
|
||||
amqp.handle_items('newcomments_q', _run_new_comments, limit=limit)
|
||||
|
||||
def run_commentstree(qname="commentstree_q", limit=100):
|
||||
def run_commentstree(qname="commentstree_q", limit=200):
|
||||
"""Add new incoming comments to their respective comments trees"""
|
||||
|
||||
@g.stats.amqp_processor(qname)
|
||||
|
||||
Reference in New Issue
Block a user