Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
27223ae8
Commit
27223ae8
authored
Apr 30, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load celery for CMS as well.
parent
34df5a32
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
cms/__init__.py
+5
-0
cms/celery.py
+17
-0
cms/envs/test.py
+1
-1
lms/envs/bok_choy.py
+0
-1
lms/envs/test.py
+0
-1
No files found.
cms/__init__.py
View file @
27223ae8
from
__future__
import
absolute_import
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from
.celery
import
app
as
celery_app
cms/celery.py
0 → 100644
View file @
27223ae8
from
__future__
import
absolute_import
import
os
from
celery
import
Celery
from
django.conf
import
settings
# set the default Django settings module for the 'celery' program.
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'proj.settings'
)
app
=
Celery
(
'proj'
)
# Using a string here means the worker will not have to
# pickle the object when using Windows.
app
.
config_from_object
(
'django.conf:settings'
)
app
.
autodiscover_tasks
(
lambda
:
settings
.
INSTALLED_APPS
)
cms/envs/test.py
View file @
27223ae8
...
...
@@ -188,7 +188,7 @@ simplefilter('ignore')
CELERY_ALWAYS_EAGER
=
True
CELERY_RESULT_BACKEND
=
'cache'
BROKER_TRANSPORT
=
'memory'
CELERY_CACHE_BACKEND
=
'memory'
########################### Server Ports ###################################
...
...
lms/envs/bok_choy.py
View file @
27223ae8
...
...
@@ -57,7 +57,6 @@ MEDIA_URL = "/static/uploads/"
CELERY_ALWAYS_EAGER
=
True
CELERY_RESULT_BACKEND
=
'cache'
CELERY_CACHE_BACKEND
=
'memory'
#BROKER_TRANSPORT = 'memory'
###################### Grade Downloads ######################
GRADES_DOWNLOAD
=
{
...
...
lms/envs/test.py
View file @
27223ae8
...
...
@@ -301,7 +301,6 @@ GIT_REPO_DIR = TEST_ROOT / "course_repos"
CELERY_ALWAYS_EAGER
=
True
CELERY_RESULT_BACKEND
=
'cache'
CELERY_CACHE_BACKEND
=
'memory'
BROKER_TRANSPORT
=
'memory'
######################### MARKETING SITE ###############################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment