From 4a27cb9096f54cc4e62b1d2f16e0c597cf06f219 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 11 Aug 2020 15:07:34 -0400 Subject: [PATCH] Set monthly task to run by default It was previously set to not run by default. Since the monthly task is part of Figures normal workflow, we want it enabled by default. This can be overridden by setting the ENV_VARS 'FIGURES' variable `ENABLE_FIGURES_MONTHLY_METRICS` to False in the lms.env.json file --- figures/settings/lms_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/figures/settings/lms_production.py b/figures/settings/lms_production.py index e57c26af..b17e99a1 100644 --- a/figures/settings/lms_production.py +++ b/figures/settings/lms_production.py @@ -49,7 +49,7 @@ def update_celerybeat_schedule(celerybeat_schedule_settings, figures_env_tokens) ), } - if figures_env_tokens.get('ENABLE_FIGURES_MONTHLY_METRICS', False): + if figures_env_tokens.get('ENABLE_FIGURES_MONTHLY_METRICS', True): celerybeat_schedule_settings['figures-monthly-metrics'] = { 'task': 'figures.tasks.run_figures_monthly_metrics', 'schedule': crontab(0, 0, day_of_month=1),