From 00ff96f0448f5d768d4d5a8581c7a1bafae2ebd6 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 9 Aug 2021 16:12:57 +0200 Subject: [PATCH] uwsgi: skip cron job if DISABLE_CRON_JOBS (#56068) --- bijoe/uwsgi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bijoe/uwsgi.py b/bijoe/uwsgi.py index 1632c47..912074f 100644 --- a/bijoe/uwsgi.py +++ b/bijoe/uwsgi.py @@ -46,6 +46,8 @@ def wcs_olap(wcs_olap_ini_path): @cron(0, 3, -1, -1, -1, target='spooler') @log_exception('enqueuing of wcs-olap jobs') def cron_enqueue_wcs_olap(num): + if getattr(settings, 'DISABLE_CRON_JOBS'): + return enqueue_wcs_olap()