Commit 29117f5a3f94da085f6561faef11d9860e093003

Authored by Sergio Oliveira
1 parent d6f2d2fb

django-celery not needed

colab/celery.py
... ... @@ -14,13 +14,6 @@ app = Celery('colab')
14 14 app.config_from_object('django.conf:settings')
15 15 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
16 16  
17   -app.conf.update(
18   - CELERY_RESULT_BACKEND='djcelery.backends.database:DatabaseBackend',
19   -)
20   -app.conf.update(
21   - CELERY_RESULT_BACKEND='djcelery.backends.cache:CacheBackend',
22   -)
23   -
24 17  
25 18 @app.task(bind=True)
26 19 def debug_task(self):
... ...
colab/plugins/gitlab/celery.py
... ... @@ -1,22 +0,0 @@
1   -from __future__ import absolute_import
2   -
3   -import os
4   -
5   -from celery import Celery
6   -
7   -# set the default Django settings module for the 'celery' program.
8   -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'colab.settings')
9   -
10   -from django.conf import settings
11   -
12   -app = Celery('colab')
13   -
14   -app.config_from_object('django.conf:settings')
15   -app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
16   -
17   -app.conf.update(
18   - CELERY_RESULT_BACKEND='djcelery.backends.database:DatabaseBackend',
19   -)
20   -app.conf.update(
21   - CELERY_RESULT_BACKEND='djcelery.backends.cache:CacheBackend',
22   -)
colab/settings.py
... ... @@ -47,7 +47,6 @@ INSTALLED_APPS = (
47 47 'haystack',
48 48 'hitcounter',
49 49 'taggit',
50   - 'djcelery',
51 50  
52 51 # Own apps
53 52 'colab.home',
... ...
colab/signals/celery.py
... ... @@ -1,22 +0,0 @@
1   -from __future__ import absolute_import
2   -
3   -import os
4   -
5   -from celery import Celery
6   -
7   -# set the default Django settings module for the 'celery' program.
8   -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'colab.settings')
9   -
10   -from django.conf import settings
11   -
12   -app = Celery('colab')
13   -
14   -app.config_from_object('django.conf:settings')
15   -app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
16   -
17   -app.conf.update(
18   - CELERY_RESULT_BACKEND='djcelery.backends.database:DatabaseBackend',
19   -)
20   -app.conf.update(
21   - CELERY_RESULT_BACKEND='djcelery.backends.cache:CacheBackend',
22   -)
setup.py
... ... @@ -16,7 +16,7 @@ REQUIREMENTS = [
16 16 'diazo>=1.0.5',
17 17  
18 18 # Async Signals
19   - 'django-celery==3.1.16',
  19 + 'celery>=3.1',
20 20  
21 21 ### Move out of colab (as plugins):
22 22  
... ...