Commit f407845a authored by Ilya Simonov's avatar Ilya Simonov

add django_celery_beat for settings

parent 358a293b
......@@ -144,7 +144,8 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html#using-celery-with-django
REDIS_HOST = '127.0.0.1'
REDIS_PORT = '6379'
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default=f'redis://{REDIS_HOST}:{REDIS_PORT}/0')
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default=f'redis://{REDIS_HOST}:{REDIS_PORT}')
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
# AWS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment