-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Introduce galaxy_external_url
variable
#18576
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -2279,15 +2279,29 @@ | |||||||
:Type: str | ||||||||
|
||||||||
|
||||||||
~~~~~~~~~~~~~~~~~~~~~~~ | ||||||||
``galaxy_external_url`` | ||||||||
~~~~~~~~~~~~~~~~~~~~~~~ | ||||||||
|
||||||||
:Description: | ||||||||
URL (with schema http/https) of the Galaxy instance as accessible | ||||||||
from external networks, including ``galaxy_url_prefix`` if | ||||||||
necessary. This URL is used to determine links outside of the web | ||||||||
application, e.g. when requesting job finish emails. | ||||||||
:Default: ``None`` | ||||||||
:Type: str | ||||||||
|
||||||||
|
||||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||||||
``galaxy_infrastructure_url`` | ||||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||||||
|
||||||||
:Description: | ||||||||
URL (with schema http/https) of the Galaxy instance as accessible | ||||||||
within your local network. This URL is used as a default by pulsar | ||||||||
file staging and Interactive Tool containers for communicating | ||||||||
back with Galaxy via the API. | ||||||||
within your local network, including ``galaxy_url_prefix`` if | ||||||||
necessary. This URL is used as a default by pulsar file staging | ||||||||
and Interactive Tool containers for communicating back with Galaxy | ||||||||
via the API. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this redundant with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, maybe it can be simplified to |
||||||||
If you plan to run Interactive Tools make sure the docker | ||||||||
container can reach this URL. | ||||||||
:Default: ``http://localhost:8080`` | ||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,12 +53,11 @@ def execute(cls, app, sa_session, action, job, replacement_dict, final_job_state | |
try: | ||
history_id_encoded = app.security.encode_id(job.history_id) | ||
link_invocation = None | ||
galaxy_url = app.config.galaxy_external_url or app.config.galaxy_infrastructure_url | ||
if job.workflow_invocation_step: | ||
invocation_id_encoded = app.security.encode_id(job.workflow_invocation_step.workflow_invocation_id) | ||
link_invocation = ( | ||
f"{app.config.galaxy_infrastructure_url}/workflows/invocations/report?id={invocation_id_encoded}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm... well that was problematic 😨. I agree we should have this option but we should just disable this link if the config option is not set IMO. Things should just degrade well if the new option is not set and I think that means either serializing the request url with the job or dropping it all together. |
||
) | ||
link = f"{app.config.galaxy_infrastructure_url}/histories/view?id={history_id_encoded}" | ||
link_invocation = f"{galaxy_url}/workflows/invocations/report?id={invocation_id_encoded}" | ||
link = f"{galaxy_url}/histories/view?id={history_id_encoded}" | ||
to = job.get_user_email() | ||
subject = f"Galaxy job completion notification from history '{job.history.name}'" | ||
outdata = ",\n".join(ds.dataset.display_name() for ds in job.output_datasets) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.