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

flush next db before running jobs

parent 0127216b
Branches
Tags
No related merge requests found
......@@ -441,6 +441,9 @@ def launch_refresh_cache_all(config):
"""
logger = logging.getLogger(__name__)
r = get_next_redis(InventoryTask.config)
r.flushdb()
# first batch of subtasks: refresh cached opsdb data
subtasks = [
update_junosspace_device_list.apply_async(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment