[ML] Get studio url using 'job.studio_url' property instead of 'job.services["Studio"].endpoint (#1878)
* [ML] Get studio url using 'job.studio_url' property instead of 'job.services[Studio].endpoint
This commit is contained in:
Родитель
84344c2b5f
Коммит
0144d7363e
|
@ -85,7 +85,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.jobs.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -137,7 +137,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -218,7 +218,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -331,7 +331,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.jobs.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -364,4 +364,4 @@
|
|||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 4
|
||||
}
|
||||
}
|
|
@ -224,7 +224,7 @@
|
|||
"# submit the command job\n",
|
||||
"returned_job = ml_client.jobs.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -340,7 +340,7 @@
|
|||
"# submit the command job\n",
|
||||
"returned_job = ml_client.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
|
@ -354,7 +354,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.jobs.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -403,7 +403,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -323,7 +323,7 @@
|
|||
"outputs": [],
|
||||
"source": [
|
||||
"# Get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -286,7 +286,7 @@
|
|||
"print(f\"Created job: {returned_job}\")\n",
|
||||
"\n",
|
||||
"# Get a URL for the status of the job\n",
|
||||
"# returned_job.services[\"Studio\"].endpoint"
|
||||
"# returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.jobs.create_or_update(command_job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -236,7 +236,7 @@
|
|||
"# submit the sweep\n",
|
||||
"returned_sweep_job = ml_client.create_or_update(sweep_job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_sweep_job.services[\"Studio\"].endpoint"
|
||||
"returned_sweep_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -350,7 +350,7 @@
|
|||
"returned_sweep_job_cmd = ml_client.jobs.create_or_update(cmd_component_sweep_job)\n",
|
||||
"\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_sweep_job_cmd.services[\"Studio\"].endpoint"
|
||||
"returned_sweep_job_cmd.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -281,7 +281,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.jobs.create_or_update(job)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -371,7 +371,7 @@
|
|||
"# submit the command\n",
|
||||
"returned_job = ml_client.create_or_update(explore_datastore)\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"returned_job.services[\"Studio\"].endpoint"
|
||||
"returned_job.studio_url"
|
||||
],
|
||||
"outputs": [],
|
||||
"execution_count": null,
|
||||
|
|
|
@ -260,9 +260,9 @@
|
|||
"\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"print(\"The url to see your live job running is returned by the sdk:\")\n",
|
||||
"print(returned_job.services[\"Studio\"].endpoint)\n",
|
||||
"print(returned_job.studio_url)\n",
|
||||
"# open the browser with this url\n",
|
||||
"webbrowser.open(returned_job.services[\"Studio\"].endpoint)\n",
|
||||
"webbrowser.open(returned_job.studio_url)\n",
|
||||
"\n",
|
||||
"# print the pipeline run id\n",
|
||||
"print(\n",
|
||||
|
@ -330,7 +330,7 @@
|
|||
"\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"print(\"The url to see your live job running is returned by the sdk:\")\n",
|
||||
"print(returned_job.services[\"Studio\"].endpoint)\n",
|
||||
"print(returned_job.studio_url)\n",
|
||||
"```"
|
||||
]
|
||||
},
|
||||
|
@ -448,9 +448,9 @@
|
|||
"\n",
|
||||
"# get a URL for the status of the job\n",
|
||||
"print(\"The url to see your live job running is returned by the sdk:\")\n",
|
||||
"print(returned_job.services[\"Studio\"].endpoint)\n",
|
||||
"print(returned_job.studio_url)\n",
|
||||
"# open the browser with this url\n",
|
||||
"webbrowser.open(returned_job.services[\"Studio\"].endpoint)\n",
|
||||
"webbrowser.open(returned_job.studio_url)\n",
|
||||
"\n",
|
||||
"# print the pipeline run id\n",
|
||||
"print(\n",
|
||||
|
|
|
@ -992,7 +992,7 @@
|
|||
" experiment_name=\"e2e_registered_components\",\n",
|
||||
")\n",
|
||||
"# open the pipeline in web browser\n",
|
||||
"webbrowser.open(pipeline_job.services[\"Studio\"].endpoint)"
|
||||
"webbrowser.open(pipeline_job.studio_url)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче