# 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)
|
history, created = MosqPostStatistic.objects.update_or_create(date=d, total=ret[d], increment=increment)
|
||||||
is_first = False
|
is_first = False
|
||||||
|
|
||||||
|
|
||||||
@task()
|
@task()
|
||||||
def update_latest_statistic():
|
def update_latest_statistic():
|
||||||
pass
|
pass
|
|
@ -201,7 +201,7 @@ CACHES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Celery settings
|
# 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_RESULT_BACKEND = 'django-db'
|
||||||
CELERY_ACCEPT_CONTENT = ['json']
|
CELERY_ACCEPT_CONTENT = ['json']
|
||||||
CELERY_TASK_SERIALIZER = 'json'
|
CELERY_TASK_SERIALIZER = 'json'
|
||||||
|
|
Loading…
Reference in New Issue