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
boto>=2.32.1,<3.0.0
celery==3.1.18
defusedxml==0.4.1
#django>=1.8,<1.9
django==1.8.5
django-celery==3.1.16
django>=1.8,<1.9
django-extensions==1.5.9
django-model-utils==2.3.1
djangorestframework>=3.1,<3.3
......
......@@ -3,7 +3,7 @@ Base settings for ORA2.
"""
import os
import sys
from celery import Celery
DEBUG = True
TEMPLATE_DEBUG = DEBUG
......@@ -121,7 +121,6 @@ INSTALLED_APPS = (
# Third party
'django_extensions',
'djcelery',
# XBlock
'workbench',
......@@ -150,13 +149,14 @@ CACHES = {
BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
# Celery 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()
# Celery initialization and configuration
# We run Celery in "always eager" mode in the test suite and local dev,
# which executes tasks synchronously instead of using the task queue.
CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
class Config:
# We run Celery in "always eager" mode in the test suite and local dev,
# which executes tasks synchronously instead of using the task queue.
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):
setup(
name='ora2',
version='0.2.1',
version='0.2.2',
author='edX',
url='http://github.com/edx/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