Skip to content

Commit 8bb58ad

Browse files
chore: update the reindex command (#1374)
This commands now schdules a celery task to populate the index on launch and upgrade. Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
1 parent be332ff commit 8bb58ad

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • tutor/templates/jobs/init

tutor/templates/jobs/init/cms.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ if [ -d /openedx/data/uploads/ ]; then
1313
fi
1414
fi
1515

16-
# Create the index for studio and courseware content. Because we specify --init,
17-
# this will not populate the index (potentially slow) nor replace any existing
18-
# index (resulting in broken features until it is complete). If either of those
19-
# are necessary, it will print instructions on what command to run to do so.
20-
./manage.py cms reindex_studio --experimental --init
16+
# Schedule Studio search index population. Index creation and configuration
17+
# are already handled by the post_migrate signal during `cms migrate` above;
18+
# this enqueues a Celery task that cms-worker consumes to populate the index
19+
# incrementally in the background.
20+
./manage.py cms reindex_studio
2121
# Create the courseware content index
2222
./manage.py cms reindex_course --active
2323

0 commit comments

Comments
 (0)