# up task redis

This commit is contained in:
xianfuxing 2018-08-13 20:33:36 +08:00
parent dfc2076c81
commit 5ee0f705c3
2 changed files with 2 additions and 1 deletions

View File

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

View File

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