get portal_url from result instead of construct them (#2777)
* get portal_url from result instead of construct them * add .pyc to cspell.json * refine * Refine --------- Co-authored-by: Ge Gao <gega@microsoft.com>
This commit is contained in:
Родитель
e3cfb3c6d4
Коммит
171ab4b205
|
@ -156,6 +156,7 @@
|
|||
],
|
||||
"ignorePaths":[
|
||||
"**.py",
|
||||
"**.pyc",
|
||||
"**.jinja2",
|
||||
"**.txt",
|
||||
"**.json",
|
||||
|
|
|
@ -107,12 +107,13 @@ def get_run_id_and_url(res, sub, rg, ws):
|
|||
match = re.search(r'"name": "(.*?)",', line)
|
||||
if match:
|
||||
run_id = match.group(1)
|
||||
portal_url = (
|
||||
f"https://ml.azure.com/prompts/flow/bulkrun/run/{run_id}/details"
|
||||
f"?wsid=/subscriptions/{sub}/resourceGroups/{rg}/providers"
|
||||
f"/Microsoft.MachineLearningServices/workspaces/{ws}"
|
||||
)
|
||||
log_debug(f"runId: {run_id}")
|
||||
|
||||
if ('"portal_url":' in line):
|
||||
match = re.search(r'"portal_url": "(.*?)",', line)
|
||||
if match:
|
||||
portal_url = match.group(1)
|
||||
log_debug(f"portal_url: {portal_url}")
|
||||
return run_id, portal_url
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче