change celery log location

pull/94/head
eric 2020-04-29 21:19:01 -04:00
parent 90968ee498
commit ac8741de5f
2 changed files with 2 additions and 1 deletions

View File

@ -13,5 +13,5 @@ def save_info_page():
page_view = InfoPageView()
page = render_to_string(page_view.template_name, context=page_view.get_context_data())
today = date.today().isoformat()
with open(join(settings.PROJECT_DIR, 'logs', 'metrics-%s.html' % today), 'w') as todays_metrics:
with open(join(settings.CELERY_LOG_DIR, 'metrics-%s.html' % today), 'w') as todays_metrics:
todays_metrics.write(page)

View File

@ -361,6 +361,7 @@ CAMPAIGN_ARCHIVE_JS = "http://us2.campaign-archive1.com/generate-js/?u=154728787
# use redis for production queue and results
BROKER_URL = "redis://127.0.0.1:6379/0"
CELERY_RESULT_BACKEND = "redis://127.0.0.1:6379/1"
CELERY_LOG_DIR = ""
# periodic tasks for celery
from celery.schedules import crontab