[fix] checker: don't run the checker when uwsgi is not properly configured

Before this commit, even with the scheduler disabled, the checker was running
at least once for each uwsgi worker.
This commit is contained in:
Alexandre Flament 2021-01-13 14:07:39 +01:00
parent 7f0c508598
commit 912c7e975c
4 changed files with 9 additions and 6 deletions

View file

@ -22,7 +22,7 @@ else:
from .shared_simple import SimpleSharedDict as SharedDict
def schedule(delay, func, *args):
pass
return False
else:
# uwsgi
from .shared_uwsgi import UwsgiCacheSharedDict as SharedDict, schedule