Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2022-02-15 08:05:12 +01:00
parent 5b3d7fcf2c
commit 8af7ac8af4
71 changed files with 19992 additions and 19476 deletions

View File

@@ -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))