##// END OF EJS Templates
caches: don't clear all cache keys on exit as we lost state for not-recycled workers
super-admin -
r4846:7c435f72 default
parent child Browse files
Show More
@@ -40,8 +40,8 b' def free_cache_keys(*args):'
40 try:
40 try:
41 for cache_proc in cache_keys_by_pid:
41 for cache_proc in cache_keys_by_pid:
42 CacheKey.query().filter(CacheKey.cache_key.startswith(cache_proc)).delete()
42 CacheKey.query().filter(CacheKey.cache_key.startswith(cache_proc)).delete()
43 cache_keys_by_pid.remove(cache_proc)
43 Session().commit()
44 Session().commit()
44 cache_keys_by_pid.clear()
45 except Exception:
45 except Exception:
46 log.warn('Failed to clear keys, exiting gracefully')
46 log.warn('Failed to clear keys, exiting gracefully')
47
47
General Comments 0
You need to be logged in to leave comments. Login now