You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2026/01/05 20:14:39 UTC

(allura) 01/02: lower priority reindex tasks for users & projects, like already done for normal artifacts

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/reindex_improvements
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 0766c8b72c5454b615e7c990504167b068f70ed4
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Mon Jan 5 13:32:03 2026 -0500

    lower priority reindex tasks for users & projects, like already done for normal artifacts
---
 Allura/allura/scripts/reindex_projects.py | 4 +++-
 Allura/allura/scripts/reindex_users.py    | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/scripts/reindex_projects.py b/Allura/allura/scripts/reindex_projects.py
index 305b0571f..2000ad262 100644
--- a/Allura/allura/scripts/reindex_projects.py
+++ b/Allura/allura/scripts/reindex_projects.py
@@ -75,7 +75,9 @@ def _post_add_projects(cls, chunk):
         mongo document is too large.
         """
         try:
-            add_projects.post(chunk)
+            add_projects.post(chunk,
+                              __task_priority=5,  # lower than default 10
+                              )
         except InvalidDocument as e:
             # there are many types of InvalidDocument, only recurse if its
             # expected to help
diff --git a/Allura/allura/scripts/reindex_users.py b/Allura/allura/scripts/reindex_users.py
index 62fec2c74..3a7b964a9 100644
--- a/Allura/allura/scripts/reindex_users.py
+++ b/Allura/allura/scripts/reindex_users.py
@@ -61,7 +61,9 @@ def _post_add_users(cls, chunk):
         mongo document is too large.
         """
         try:
-            add_users.post(chunk)
+            add_users.post(chunk,
+                           __task_priority=5,  # lower than default 10
+                           )
         except InvalidDocument as e:
             # there are many types of InvalidDocument, only recurse if its
             # expected to help