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

Sparkjob - show and save UI ingress URL #471

Merged
merged 3 commits into from
Oct 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion mlrun/runtimes/sparkjob.py
Expand Up @@ -232,7 +232,14 @@ def _run(self, runobj: RunObject, execution: MLClientCtx):
meta.name, driver, status
)
)
logger.info("use .watch({}) to see logs".format(meta.name))
Hedingber marked this conversation as resolved.
Show resolved Hide resolved
resp = self.get_job(meta.name, meta.namespace)
ui_ingress = (
resp.get("status", {})
.get("driverInfo", {})
.get("webUIIngressAddress")
)
if ui_ingress:
runobj.status.status_text = f"UI is available while the job is running: http://{ui_ingress}"
else:
logger.error(
"SparkJob status unknown or failed, check pods: {}".format(
Expand Down