uwsgi: skip cron job if DISABLE_CRON_JOBS (#56068)
This commit is contained in:
parent
be83c18e28
commit
00ff96f044
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue