Commit cae90bc1 by Usman Khalid

Merge pull request #776 from edx/usman/remove-django-celery

Remove django-celery
parents 50f16be0 6612bff4
...@@ -12,9 +12,7 @@ git+https://github.com/edx/edx-submissions.git@muzaffar/upgrage-django-1.8#egg=e ...@@ -12,9 +12,7 @@ git+https://github.com/edx/edx-submissions.git@muzaffar/upgrage-django-1.8#egg=e
boto>=2.32.1,<3.0.0 boto>=2.32.1,<3.0.0
celery==3.1.18 celery==3.1.18
defusedxml==0.4.1 defusedxml==0.4.1
#django>=1.8,<1.9 django>=1.8,<1.9
django==1.8.5
django-celery==3.1.16
django-extensions==1.5.9 django-extensions==1.5.9
django-model-utils==2.3.1 django-model-utils==2.3.1
djangorestframework>=3.1,<3.3 djangorestframework>=3.1,<3.3
......
...@@ -3,7 +3,7 @@ Base settings for ORA2. ...@@ -3,7 +3,7 @@ Base settings for ORA2.
""" """
import os import os
import sys from celery import Celery
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
...@@ -121,7 +121,6 @@ INSTALLED_APPS = ( ...@@ -121,7 +121,6 @@ INSTALLED_APPS = (
# Third party # Third party
'django_extensions', 'django_extensions',
'djcelery',
# XBlock # XBlock
'workbench', 'workbench',
...@@ -150,13 +149,14 @@ CACHES = { ...@@ -150,13 +149,14 @@ CACHES = {
BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
# Celery configuration # Celery initialization and configuration
# Note: Version 3.1 of Celery includes Django support, but since we're using
# version 3.0 (same as edx-platform), we need to use an external library.
import djcelery
djcelery.setup_loader()
# We run Celery in "always eager" mode in the test suite and local dev, class Config:
# which executes tasks synchronously instead of using the task queue. # We run Celery in "always eager" mode in the test suite and local dev,
CELERY_ALWAYS_EAGER = True # which executes tasks synchronously instead of using the task queue.
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
APP = Celery()
APP.config_from_object(Config)
APP.autodiscover_tasks(lambda: INSTALLED_APPS)
...@@ -42,7 +42,7 @@ def load_requirements(*requirements_paths): ...@@ -42,7 +42,7 @@ def load_requirements(*requirements_paths):
setup( setup(
name='ora2', name='ora2',
version='0.2.1', version='0.2.2',
author='edX', author='edX',
url='http://github.com/edx/edx-ora2', url='http://github.com/edx/edx-ora2',
description='edx-ora2', description='edx-ora2',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment