Skip to content

Commit

Permalink
Move tool_cache.reset_status() calls to reload toolbox/data managers,…
Browse files Browse the repository at this point in the history
… so that we can use information about whether tools are new during reloads
  • Loading branch information
mvdbeek committed May 1, 2017
1 parent 2906f0c commit 6c22726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/galaxy/config.py
Expand Up @@ -956,7 +956,6 @@ def reindex_tool_search( self ):
self.toolbox_search = galaxy.tools.search.ToolBoxSearch( toolbox, index_help )
else:
self.toolbox_search.update_index(tool_cache=self.tool_cache)
self.tool_cache.reset_status()

def _configure_tool_data_tables( self, from_shed_config ):
from galaxy.tools.data import ToolDataTableManager
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/queue_worker.py
Expand Up @@ -116,6 +116,7 @@ def _get_new_toolbox(app):
new_toolbox.load_hidden_lib_tool( "galaxy/datatypes/set_metadata_tool.xml" )
[new_toolbox.register_tool(tool) for tool in new_toolbox.data_manager_tools.values()]
app.reindex_tool_search()
app.tool_cache.reset_status()
return new_toolbox


Expand All @@ -130,6 +131,7 @@ def reload_data_managers(app, **kwargs):
app.data_managers = DataManagers(app)
app.data_managers._reload_count = reload_count + 1
app.tool_version_cache = ToolVersionCache(app)
app.tool_cache.reset_status()
end = time.time() - start
log.debug("Data Manager reload took %f seconds", end)

Expand Down

0 comments on commit 6c22726

Please sign in to comment.