@@ -44,14 +44,15 @@ def schedule(delay, func, *args):
45 def sighandler(signum):
45 def sighandler(signum):
46 now = int(time.time())
46 now = int(time.time())
47+ key = 'scheduler_call_time_signal_' + str(signum)
47 uwsgi.lock()
48 uwsgi.lock()
49− updating = uwsgi.cache_get('updating')
50+ updating = uwsgi.cache_get(key)
50 if updating is not None:
51 if updating is not None:
51 updating = int.from_bytes(updating, 'big')
52 updating = int.from_bytes(updating, 'big')
52 if now - updating < delay:
53 if now - updating < delay:
54− uwsgi.cache_update('updating', now.to_bytes(4, 'big'))
55+ uwsgi.cache_update(key, now.to_bytes(4, 'big'))
56 uwsgi.unlock()
57 uwsgi.unlock()
57 func(*args)
58 func(*args)