lms package#

Subpackages#

Submodules#

lms.celery module#

Import celery, load its settings from the django settings and auto discover tasks in all installed django apps.

Taken from: https://celery.readthedocs.org/en/latest/django/first-steps-with-django.html

lms.docker_lms_gunicorn module#

gunicorn configuration file: http://docs.gunicorn.org/en/stable/configure.html

lms.docker_lms_gunicorn.close_all_caches()#

Close the cache so that newly forked workers cannot accidentally share the socket with the processes they were forked from. This prevents a race condition in which one worker could get a cache response intended for another worker. We do this in a way that is safe for 1.4 and 1.8 while we still have some 1.4 installations.

lms.docker_lms_gunicorn.post_fork(_server, _worker)#
lms.docker_lms_gunicorn.pre_request(worker, req)#

lms.startup module#

Module for code that should run during LMS startup (deprecated)

lms.startup.run()#

Executed during django startup

NOTE: DO NOT add additional code to this method or this file! The Platform Team

is moving all startup code to more standard locations using Django best practices.

lms.urls module#

URLs for LMS

lms.wsgi_apache_lms module#

Module contents#

Celery needs to be loaded when the cms modules are so that task registration and discovery can work correctly.