Skip to content

Commit

Permalink
Set monthly task to run by default
Browse files Browse the repository at this point in the history
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
  • Loading branch information
johnbaldwin committed Aug 11, 2020
1 parent 4fc61e9 commit 4a27cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion figures/settings/lms_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4a27cb9

Please sign in to comment.