Skip to content

Commit

Permalink
feat: avoid slow reindex of studio content during init
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald authored and DawoudSheraz committed Dec 10, 2024
1 parent 07b46e4 commit 59abd50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tutor/templates/jobs/init/cms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 59abd50

Please sign in to comment.