Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f004e953
Commit
f004e953
authored
11 years ago
by
Greg Price
Browse files
Options
Downloads
Plain Diff
Merge pull request #1135 from edx/hotfix/lms-startup
parents
908371ea
51d0dd12
No related branches found
Branches containing commit
Tags
release-2020-03-16-08.06
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/startup.py
+6
-0
6 additions, 0 deletions
lms/startup.py
with
6 additions
and
0 deletions
lms/startup.py
+
6
−
0
View file @
f004e953
...
...
@@ -9,6 +9,7 @@ from django.conf import settings
settings
.
INSTALLED_APPS
# pylint: disable=W0104
from
django_startup
import
autostartup
from
xmodule.modulestore.django
import
modulestore
log
=
logging
.
getLogger
(
__name__
)
...
...
@@ -17,3 +18,8 @@ def run():
Executed during django startup
"""
autostartup
()
# trigger a forced initialization of our modulestores since this can take a while to complete
# and we want this done before HTTP requests are accepted
for
store_name
in
settings
.
MODULESTORE
:
modulestore
(
store_name
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment