Skip to content
Snippets Groups Projects
Commit fc8a9fcd authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent 8e64c2d3
No related branches found
No related tags found
No related merge requests found
......@@ -440,6 +440,13 @@ def _derive_router_hostnames(config):
def _erase_next_db(config):
"""
flush next db, but first save latch and then restore afterwards
TODO: handle the no latch scenario nicely
:param config:
:return:
"""
r = get_next_redis(config)
saved_latch = get_latch(r)
r.flushdb()
......@@ -449,6 +456,7 @@ def _erase_next_db(config):
new_current=saved_latch['current'],
new_next=saved_latch['next'])
def launch_refresh_cache_all(config):
"""
utility function intended to be called outside of the worker process
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment