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

Use managers defined in job destination parameters #108

Merged
merged 3 commits into from
Apr 20, 2016

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Apr 16, 2016

This way there is no discrepancy between the arguments that message queue pulsar and http pulsar consume.

If manager name was specified in the destination parameters, include the
managers/<manager_name> route in the url.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 82.81% when pulling fffb542 on mvdbeek:transmit_managers_path into cb71edc on galaxyproject:master.

manager = destination_params.get("manager", None)
if manager:
remote_host = urljoin(remote_host, "managers/%s" % manager)
if not remote_host.endswith("/"):
Copy link
Member

Choose a reason for hiding this comment

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

For backward compatibility can you check if the URL contains managers/ already and warn the user the supplied manager will be ignored?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 82.797% when pulling 369189a on mvdbeek:transmit_managers_path into cb71edc on galaxyproject:master.

@jmchilton
Copy link
Member

Perfect - this makes a lot of sense. Thanks a bunch!

@jmchilton jmchilton merged commit 72bf83d into galaxyproject:master Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants