# up task redis
This commit is contained in:
parent
dfc2076c81
commit
5ee0f705c3
|
@ -76,6 +76,7 @@ def update_daily_statistic():
|
|||
history, created = MosqPostStatistic.objects.update_or_create(date=d, total=ret[d], increment=increment)
|
||||
is_first = False
|
||||
|
||||
|
||||
@task()
|
||||
def update_latest_statistic():
|
||||
pass
|
|
@ -201,7 +201,7 @@ CACHES = {
|
|||
}
|
||||
|
||||
# Celery settings
|
||||
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/2'
|
||||
CELERY_BROKER_URL = 'redis://:IySpkVL39NeOgyC@127.0.0.1:6379/2'
|
||||
CELERY_RESULT_BACKEND = 'django-db'
|
||||
CELERY_ACCEPT_CONTENT = ['json']
|
||||
CELERY_TASK_SERIALIZER = 'json'
|
||||
|
|
Loading…
Reference in New Issue