From 040fa7c19237c41e13a40f425da0510ef53dbc85 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Thu, 11 Jun 2020 23:29:10 +0200 Subject: [PATCH] removed celery --- cookbook/tasks.py | 0 recipes/celery.py | 24 ------------------------ 2 files changed, 24 deletions(-) delete mode 100644 cookbook/tasks.py delete mode 100644 recipes/celery.py diff --git a/cookbook/tasks.py b/cookbook/tasks.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/recipes/celery.py b/recipes/celery.py deleted file mode 100644 index 0dfb0d2a1..000000000 --- a/recipes/celery.py +++ /dev/null @@ -1,24 +0,0 @@ -from __future__ import absolute_import, unicode_literals - -import os - -from celery import Celery - -# set the default Django settings module for the 'celery' program. -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'recipes.settings') - -app = Celery('recipes') - -# Using a string here means the worker doesn't have to serialize -# the configuration object to child processes. -# - namespace='CELERY' means all celery-related configuration keys -# should have a `CELERY_` prefix. -app.config_from_object('django.conf:settings', namespace='CELERY') - -# Load task modules from all registered Django app configs. -app.autodiscover_tasks() - - -@app.task(bind=True) -def debug_task(self): - print('Request: {0!r}'.format(self.request))