commit
This commit is contained in:
@@ -18,13 +18,14 @@ from django.conf import settings # noqa
|
||||
|
||||
|
||||
app = Celery('tasks',
|
||||
broker='redis://localhost',
|
||||
backend='redis://localhost',)
|
||||
broker='redis://localhost',
|
||||
backend='redis://localhost',)
|
||||
|
||||
|
||||
class Config:
|
||||
CELERY_TIMEZONE = 'Europe/Prague'
|
||||
|
||||
|
||||
# Using a string here means the worker will not have to
|
||||
# pickle the object when using Windows.
|
||||
app.config_from_object('django.conf:settings')
|
||||
@@ -33,7 +34,6 @@ app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|
||||
|
||||
database_url = 'sqlite:///db.sqlite3'
|
||||
|
||||
#@app.task(bind=True)
|
||||
#def debug_task(self):
|
||||
# @app.task(bind=True)
|
||||
# def debug_task(self):
|
||||
# print('Request: {0!r}'.format(self.request))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user