Commit 29117f5a3f94da085f6561faef11d9860e093003
1 parent
d6f2d2fb
Exists in
master
and in
30 other branches
django-celery not needed
Showing
5 changed files
with
1 additions
and
53 deletions
Show diff stats
colab/celery.py
| @@ -14,13 +14,6 @@ app = Celery('colab') | @@ -14,13 +14,6 @@ app = Celery('colab') | ||
| 14 | app.config_from_object('django.conf:settings') | 14 | app.config_from_object('django.conf:settings') |
| 15 | app.autodiscover_tasks(lambda: settings.INSTALLED_APPS) | 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 | @app.task(bind=True) | 18 | @app.task(bind=True) |
| 26 | def debug_task(self): | 19 | def debug_task(self): |
colab/plugins/gitlab/celery.py
| @@ -1,22 +0,0 @@ | @@ -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
colab/signals/celery.py
| @@ -1,22 +0,0 @@ | @@ -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