From 59abd50d1b26a36983545f590d038b55e8c7e30a Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Fri, 6 Dec 2024 12:25:14 -0800 Subject: [PATCH] feat: avoid slow reindex of studio content during init --- tutor/templates/jobs/init/cms.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tutor/templates/jobs/init/cms.sh b/tutor/templates/jobs/init/cms.sh index 36ba45fcd0..6fe572977b 100644 --- a/tutor/templates/jobs/init/cms.sh +++ b/tutor/templates/jobs/init/cms.sh @@ -17,10 +17,10 @@ fi # Copy-paste of units in Studio (highly requested new feature, but defaults to off in Quince) (./manage.py cms waffle_flag --list | grep contentstore.enable_copy_paste_units) || ./manage.py lms waffle_flag --create contentstore.enable_copy_paste_units --everyone -# Re-index studio and courseware content -# Note that this might be slow for large courses until this issue is resolved: -# https://github.com/openedx/modular-learning/issues/235 -# But this is a necessary step to make sure the indexes are created and properly -# configured. -./manage.py cms reindex_studio --experimental +# 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 +# Create the courseware content index ./manage.py cms reindex_course --active