@@ -44,14 +44,15 @@ def schedule(delay, func, *args):
4444
4545 def sighandler(signum):
4646 now = int(time.time())
47+ key = 'scheduler_call_time_signal_' + str(signum)
4748 uwsgi.lock()
4849 try:
49− updating = uwsgi.cache_get('updating')
50+ updating = uwsgi.cache_get(key)
5051 if updating is not None:
5152 updating = int.from_bytes(updating, 'big')
5253 if now - updating < delay:
5354 return
54− uwsgi.cache_update('updating', now.to_bytes(4, 'big'))
55+ uwsgi.cache_update(key, now.to_bytes(4, 'big'))
5556 finally:
5657 uwsgi.unlock()
5758 func(*args)