uwsgi: skip cron job if DISABLE_CRON_JOBS (#56068)

This commit is contained in:
Benjamin Dauvergne 2021-08-09 16:12:57 +02:00
parent be83c18e28
commit 00ff96f044
1 changed files with 2 additions and 0 deletions

View File

@ -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()