<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to access model endpoint management APIs from workflow tasks? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-access-model-endpoint-management-apis-from-workflow-tasks/m-p/37392#M5443</link>
    <description>&lt;P&gt;I have created a model serving endpoint in Databricks. I'd like to now update this endpoint programmatically from a workflow task.&lt;/P&gt;&lt;P&gt;Following instructions on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html" target="_blank"&gt;https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have written a notebook task to update the endpoint. The notebook runs fine on its own (when I run it cell by cell manually), but it fails when run as part of a workflow.&lt;/P&gt;&lt;P&gt;Specifically, the GET request to get the status of the model endpoint fails with the following ConnectionError exception:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;ConnectionError: HTTPSConnectionPool(host='none', port=443): Max retries exceeded with url: /api/2.0/serving-endpoints/xxx (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known'))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;The same exact GET request works when the notebook runs on its own. I have played with different tokens with no success.&lt;BR /&gt;&lt;BR /&gt;It appears that the APIs to manage model serving endpoints aren't accessible from workflow tasks.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can anyone help resolve this?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 16:21:31 GMT</pubDate>
    <dc:creator>fijoy</dc:creator>
    <dc:date>2023-07-11T16:21:31Z</dc:date>
    <item>
      <title>How to access model endpoint management APIs from workflow tasks?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-access-model-endpoint-management-apis-from-workflow-tasks/m-p/37392#M5443</link>
      <description>&lt;P&gt;I have created a model serving endpoint in Databricks. I'd like to now update this endpoint programmatically from a workflow task.&lt;/P&gt;&lt;P&gt;Following instructions on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html" target="_blank"&gt;https://docs.databricks.com/machine-learning/model-serving/create-manage-serving-endpoints.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have written a notebook task to update the endpoint. The notebook runs fine on its own (when I run it cell by cell manually), but it fails when run as part of a workflow.&lt;/P&gt;&lt;P&gt;Specifically, the GET request to get the status of the model endpoint fails with the following ConnectionError exception:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;ConnectionError: HTTPSConnectionPool(host='none', port=443): Max retries exceeded with url: /api/2.0/serving-endpoints/xxx (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known'))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;The same exact GET request works when the notebook runs on its own. I have played with different tokens with no success.&lt;BR /&gt;&lt;BR /&gt;It appears that the APIs to manage model serving endpoints aren't accessible from workflow tasks.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can anyone help resolve this?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 16:21:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-access-model-endpoint-management-apis-from-workflow-tasks/m-p/37392#M5443</guid>
      <dc:creator>fijoy</dc:creator>
      <dc:date>2023-07-11T16:21:31Z</dc:date>
    </item>
  </channel>
</rss>

