summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2018-01-17 12:33:13 +0000
committerBenjamin Copeland <ben.copeland@linaro.org>2018-01-17 16:59:28 +0000
commit2b3ed8cd9efe3c2238ab30ba59674cc91f6a9695 (patch)
tree108bc53e6c7ed739a1e7c1edbcfabff511c17fa8
parent8024ee2ae0ba944f2b991e79e5f98248f71d7c3f (diff)
Patchwork: Fix broken cron emails
Cron emails are getting "ImportError: No module named production", we should define django settings before cleaning up users. Change-Id: I70a2c277c189547f82e6b107249fdb445a451527 Reviewed-on: https://review.linaro.org/23421 Reviewed-by: Kelley Spoon <kelley.spoon@linaro.org>
-rw-r--r--templates/patchwork/patchwork.cron.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/patchwork/patchwork.cron.d b/templates/patchwork/patchwork.cron.d
index 326e034b..5783908b 100644
--- a/templates/patchwork/patchwork.cron.d
+++ b/templates/patchwork/patchwork.cron.d
@@ -4,4 +4,4 @@ MAILTO=linaro-infrastructure-errors@lists.linaro.org
# sync code every hour
0 * * * * www-data {{install_base}}/{{hostname}}/tools/update_commited_patches.py
# clean up expired registrations
-0 22 * * * www-data {{install_base}}/{{hostname}}/project/manage.py cron
+0 22 * * * www-data export DJANGO_SETTINGS_MODULE={{django_settings}} && {{install_base}}/{{hostname}}/project/manage.py cron