caches: don't clear all cache keys on exit as we lost state for not-recycled workers
This commit is contained in:
parent
3535beb1a7
commit
fbadb2be0b
1 changed files with 1 additions and 1 deletions
|
|
@ -40,8 +40,8 @@ def free_cache_keys(*args):
|
|||
try:
|
||||
for cache_proc in cache_keys_by_pid:
|
||||
CacheKey.query().filter(CacheKey.cache_key.startswith(cache_proc)).delete()
|
||||
cache_keys_by_pid.remove(cache_proc)
|
||||
Session().commit()
|
||||
cache_keys_by_pid.clear()
|
||||
except Exception:
|
||||
log.warn('Failed to clear keys, exiting gracefully')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue