Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload metadata and lib tools on toolbox reload #2992

Merged
merged 1 commit into from
Oct 3, 2016

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Sep 30, 2016

Ping @natefoo

I could confirm that the auto-detecting metadata breaks after toolbox reload.
With this PR it works for me, as well as history exporting.

Should close #2988.

@natefoo
Copy link
Member

natefoo commented Sep 30, 2016

👍 thanks @mvdbeek!

@@ -63,6 +63,7 @@ def _get_new_toolbox(app):
and then adding pre-existing data managers from the old toolbox to the new toolbox.
"""
from galaxy import tools
from galaxy.tools.special_tools import load_lib_tools
from galaxy.tools.toolbox.lineages.tool_shed import ToolVersionCache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for having all these imports here instead of at the top of the file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but not a good one: I copied this initially from https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/config.py#L821

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And then the tests all fail. It'd be nice to unwind all of that - but we should probably do it in its own PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn circular imports! Sorry @mvdbeek, I hoped it was an easy fix, but @jmchilton is right, a separate PR is entirely fair.

Copy link
Member Author

@mvdbeek mvdbeek Oct 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, of course, the toolbox imports the queue worker ...

@jmchilton jmchilton merged commit 824f556 into galaxyproject:dev Oct 3, 2016
@martenson
Copy link
Member

Thanks a lot @mvdbeek for a quick followup!

@mvdbeek mvdbeek deleted the reload_special_tools branch November 23, 2016 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toolbox reloading does not load special internal tools (e.g. __SET_METADATA__)
5 participants