add rate limiting per engine

This commit is contained in:
Marc Abonce Seguin
2022-04-24 23:52:13 -05:00
parent 666cd1f635
commit 85eca4fb22
8 changed files with 90 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ try:
uwsgi = importlib.import_module('uwsgi')
except:
# no uwsgi
from .shared_simple import SimpleSharedDict as SharedDict, schedule
from .shared_simple import SimpleSharedDict as SharedDict, schedule, run_locked
logger.info('Use shared_simple implementation')
else:
@@ -32,7 +32,7 @@ else:
else:
# uwsgi
from .shared_uwsgi import UwsgiCacheSharedDict as SharedDict, schedule
from .shared_uwsgi import UwsgiCacheSharedDict as SharedDict, schedule, run_locked
logger.info('Use shared_uwsgi implementation')