<?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 Re: How to Increase HTTP Request Timeout for Databricks App Beyond 120 Seconds? in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/how-to-increase-http-request-timeout-for-databricks-app-beyond/m-p/140832#M1479</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/198781"&gt;@snarayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think you might be hitting timeout from model serving endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/model-serving/model-serving-timeouts?utm_source=chatgpt.com#client-side-timeouts-mlflow-configuration" target="_blank"&gt;Debug model serving timeouts - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try to increase timeout using &lt;SPAN&gt;environment variables using the Serving UI or programmatically using Python.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1764660902814.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22042i9439B4BE765D25A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1764660902814.png" alt="szymon_dybczak_0-1764660902814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 07:36:13 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-12-02T07:36:13Z</dc:date>
    <item>
      <title>How to Increase HTTP Request Timeout for Databricks App Beyond 120 Seconds?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-to-increase-http-request-timeout-for-databricks-app-beyond/m-p/140801#M1474</link>
      <description>&lt;P&gt;I’ve built a Databricks App using &lt;STRONG&gt;Gradio&lt;/STRONG&gt; that leverages predict_stream to get streaming responses from a &lt;STRONG&gt;multi-agent supervisor&lt;/STRONG&gt;. The app coordinates reasoning across four knowledge agents, so the model uses a long chain-of-thought process before returning a final answer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;&lt;BR /&gt;Whenever the streaming response exceeds &lt;STRONG&gt;120 seconds&lt;/STRONG&gt;, the entire stream freezes. At that point, the logs also stop updating, which suggests the HTTP request is timing out. This is problematic because the reasoning process for complex queries often takes longer than two minutes. The rest of the app seem to work fine.&lt;/P&gt;&lt;P&gt;I’ve checked the app configuration but haven’t found any setting for request_timeout or similar. I’m not sure if this is something that needs to be configured in &lt;STRONG&gt;Model Serving&lt;/STRONG&gt;, &lt;STRONG&gt;App settings&lt;/STRONG&gt;, or elsewhere in Databricks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I’ve Tried&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Verified the Gradio setup and streaming logic.&lt;/LI&gt;&lt;LI&gt;Looked through Databricks documentation for request timeout settings but couldn’t find anything specific for Apps or Model Serving.&lt;/LI&gt;&lt;LI&gt;Confirmed that the issue consistently occurs at exactly 120 seconds, which feels like a hard limit.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there a way to &lt;STRONG&gt;increase the HTTP request timeout for Databricks Apps&lt;/STRONG&gt; beyond 120 seconds?&lt;/LI&gt;&lt;LI&gt;Alternatively, is there a configuration to allow longer streaming responses from predict_stream in Model Serving?&lt;/LI&gt;&lt;LI&gt;Where should I set this—App settings, Model Serving endpoint, or somewhere else?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance or workaround would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 21:57:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-to-increase-http-request-timeout-for-databricks-app-beyond/m-p/140801#M1474</guid>
      <dc:creator>snarayan</dc:creator>
      <dc:date>2025-12-01T21:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Increase HTTP Request Timeout for Databricks App Beyond 120 Seconds?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-to-increase-http-request-timeout-for-databricks-app-beyond/m-p/140832#M1479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/198781"&gt;@snarayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think you might be hitting timeout from model serving endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/machine-learning/model-serving/model-serving-timeouts?utm_source=chatgpt.com#client-side-timeouts-mlflow-configuration" target="_blank"&gt;Debug model serving timeouts - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try to increase timeout using &lt;SPAN&gt;environment variables using the Serving UI or programmatically using Python.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1764660902814.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22042i9439B4BE765D25A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1764660902814.png" alt="szymon_dybczak_0-1764660902814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 07:36:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-to-increase-http-request-timeout-for-databricks-app-beyond/m-p/140832#M1479</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-12-02T07:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Increase HTTP Request Timeout for Databricks App Beyond 120 Seconds?</title>
      <link>https://community.databricks.com/t5/generative-ai/how-to-increase-http-request-timeout-for-databricks-app-beyond/m-p/140942#M1489</link>
      <description>&lt;DIV&gt;Thanks for the info!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried setting the MLFLOW_DEPLOYMENT_PREDICT_TIMEOUT&amp;nbsp;to 300, MLFLOW_DEPLOYMENT_PREDICT_TOTAL_TIMEOUT&amp;nbsp;to 600, and MLFLOW_DEPLOYMENT_PREDICT_TIMEOUT&amp;nbsp; to 300 in my Gradio app. My Gradio app uses the predict_stream function to call a Multi Agent Supervisor agent built using Agent bricks. But the config for these timeouts is not quite working. I am using os.environ to set up limits, please let me know if there is different way to set this up.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I noticed that I do not get any timeout error codes in the Gradio app deployment logs or through the debug print statements to identify the specific timeout error.&amp;nbsp;&lt;SPAN&gt;Overall, the stream consistently freezes after 120 seconds, and the backend app logs also stop updating. No timeout error codes are observed.&amp;nbsp;When I refresh the app, it works normally again.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But my understanding is that we can set the time out seconds during model creation or modify it after model creation.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But this model being connected to a foundational-model (Claude Sonnet/ GPT OSS) since its a Multi Agent Supervisor (I learned this from the docs). Even though mlflow configuration docs allow adding env vars for serving endpoints broadly, I couldn’t find a explicit statement that guarantees that&lt;SPAN&gt; MLFLOW_DEPLOYMENT_PREDICT_TIMEOUT, MLFLOW_DEPLOYMENT_PREDICT_TOTAL_TIMEOUT, and MLFLOW_DEPLOYMENT_PREDICT_TIMEOUT&amp;nbsp;&lt;/SPAN&gt;is honored for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;foundation-model&lt;/I&gt;&amp;nbsp;endpoints when served via the standard foundation-model serving stack. I assume I don't have access to change the configuration for them since this is managed by Agent bricks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Dec 2025 22:57:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/how-to-increase-http-request-timeout-for-databricks-app-beyond/m-p/140942#M1489</guid>
      <dc:creator>snarayan</dc:creator>
      <dc:date>2025-12-02T22:57:19Z</dc:date>
    </item>
  </channel>
</rss>

