change celery log location
parent
90968ee498
commit
ac8741de5f
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue