From 90077fa1f57a141243f1cd42f733dd608e367e9a Mon Sep 17 00:00:00 2001 From: Denis Shtanskiy Date: Thu, 4 Apr 2024 11:59:34 +0300 Subject: [PATCH] fix log --- src/backend/config/settings/base.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/backend/config/settings/base.py b/src/backend/config/settings/base.py index 820e495..816d2e8 100644 --- a/src/backend/config/settings/base.py +++ b/src/backend/config/settings/base.py @@ -3,7 +3,7 @@ from os import getenv from pathlib import Path -# from celery.schedules import crontab +from celery.schedules import crontab from dotenv import load_dotenv load_dotenv() @@ -204,15 +204,14 @@ "COMPONENT_SPLIT_REQUEST": True, } -# CELERY_BROKER_URL = "redis://redis:6379/0" -# CELERY_RESULT_BACKEND = "redis://redis:6379/0" -# -# CELERY_BEAT_SCHEDULE = { -# "auto_completion_projects_task": { -# "task": "apps.projects.tasks.auto_completion_projects_task", -# "schedule": crontab(hour=1, minute=0), -# }, -# } +CELERY_BROKER_URL = "redis://redis:6379/0" +CELERY_RESULT_BACKEND = "redis://redis:6379/0" +CELERY_BEAT_SCHEDULE = { + "auto_completion_projects_task": { + "task": "apps.projects.tasks.auto_completion_projects_task", + "schedule": crontab(hour=1, minute=0), + }, +} # Логирование для любого уровня разработки: