From 84f1b4ef457ec874db920930b8d234c2bd352b54 Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Wed, 22 Apr 2026 22:21:00 +0530 Subject: [PATCH] chore: update the reindex command This commands now schdules a celery task to populate the index on launch and upgrade. Signed-off-by: Farhaan Bukhsh --- tutor/templates/jobs/init/cms.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tutor/templates/jobs/init/cms.sh b/tutor/templates/jobs/init/cms.sh index cb38d6d1c6..a623f9ccbb 100644 --- a/tutor/templates/jobs/init/cms.sh +++ b/tutor/templates/jobs/init/cms.sh @@ -13,11 +13,11 @@ if [ -d /openedx/data/uploads/ ]; then fi fi -# Create the index for studio and courseware content. Because we specify --init, -# this will not populate the index (potentially slow) nor replace any existing -# index (resulting in broken features until it is complete). If either of those -# are necessary, it will print instructions on what command to run to do so. -./manage.py cms reindex_studio --experimental --init +# Schedule Studio search index population. Index creation and configuration +# are already handled by the post_migrate signal during `cms migrate` above; +# this enqueues a Celery task that cms-worker consumes to populate the index +# incrementally in the background. +./manage.py cms reindex_studio # Create the courseware content index ./manage.py cms reindex_course --active