<?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: dbt Cloud + Databricks SQL Warehouse with microbatching (48h lookback) — intermittent failures in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbt-cloud-databricks-sql-warehouse-with-microbatching-48h/m-p/136760#M50643</link>
    <description>&lt;P&gt;Here are few options&amp;nbsp; you can try and see if it resolves your issue.&lt;/P&gt;&lt;P&gt;1. SQL Warehouse Tuning&lt;/P&gt;&lt;P&gt;Use Serverless SQL Warehouse with Photon for faster spin-up and query execution. [docs.getdbt.com]&lt;BR /&gt;Size Appropriately: Start with Medium or Large, and enable auto-scaling for concurrency.&lt;BR /&gt;Keep Warehouse Warm: Schedule a lightweight query every 10–15 minutes to prevent cold starts.&lt;/P&gt;&lt;P&gt;2. Microbatch Optimization&lt;/P&gt;&lt;P&gt;Reduce Lookback: Try lowering from 48h to 24h or 12h, especially if late-arriving data is rare.&lt;BR /&gt;Set event_time on all upstream models to avoid full scans.&lt;BR /&gt;Tune concurrent_batches: Explicitly set this to a lower value (e.g., 2–4) to reduce parallel query load.&lt;/P&gt;&lt;P&gt;3. dbt Cloud Job Resiliency&lt;/P&gt;&lt;P&gt;Enable Job Retries: Configure retries with exponential backoff in dbt Cloud.&lt;BR /&gt;Split Models into Multiple Jobs: Break the 27 models into logical groups to reduce thread contention.&lt;BR /&gt;Use dbt Artifacts for Monitoring: Track model run times and failures using the dbt_artifacts package.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2025 14:48:43 GMT</pubDate>
    <dc:creator>nayan_wylde</dc:creator>
    <dc:date>2025-10-30T14:48:43Z</dc:date>
    <item>
      <title>dbt Cloud + Databricks SQL Warehouse with microbatching (48h lookback) — intermittent failures</title>
      <link>https://community.databricks.com/t5/data-engineering/dbt-cloud-databricks-sql-warehouse-with-microbatching-48h/m-p/136694#M50630</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I’m currently running hourly dbt Cloud job (27 models with 8 threads) on a Databricks SQL Warehouse using the dbt microbatch approach, with a 48-hour lookback window.&lt;/P&gt;&lt;P&gt;But I’m running into some recurring issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Jobs failing intermittently&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Occasional 504 errors&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;: Error during request to server.&amp;nbsp;&lt;BR /&gt;Error properties: attempt=1/30, bounded-retry-delay=None, elapsed-seconds=1.6847290992736816/900.0, error-message=, http-code=504, method=ExecuteStatement, no-retry-reason=non-retryable error, original-exception=, query-id=None, session-id=b'\x01\xf0\xb3\xb37"\x1e@\x86\x85\xdc\xebZ\x84wq'&lt;BR /&gt;2025-10-28 04:04:41.463403 (Thread-7 (worker)): 04:04:41&amp;nbsp;[31mUnhandled error while executing [0m&lt;BR /&gt;Exception on worker thread. Database Error&lt;BR /&gt;&amp;nbsp;Error during request to server.&lt;BR /&gt;2025-10-28 04:04:41.464025 (Thread-7 (worker)): 04:04:41&amp;nbsp;On model.xxxx.xxxx: Close&lt;BR /&gt;2025-10-28 04:04:41.464611 (Thread-7 (worker)): 04:04:41&amp;nbsp;Databricks adapter: Connection(session-id=01f0b3b3-3722-1e40-8685-dceb5a847771) - Closing&lt;/P&gt;&lt;P&gt;Has anyone here implemented a similar dbt + Databricks microbatch pipeline and faced the same reliability issues?&lt;/P&gt;&lt;P&gt;I’d love to hear how you’ve handled it — whether through:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;dbt Cloud job retries or orchestration tweaks&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Databricks SQL Warehouse tuning - it tried over-provisioning multi fold and it didn't make a difference&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Adjusting the microbatch config (e.g., lookback period, concurrency, scheduling)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Or any other resiliency strategies&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks in advance for any insights!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 07:35:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbt-cloud-databricks-sql-warehouse-with-microbatching-48h/m-p/136694#M50630</guid>
      <dc:creator>dheeraj98</dc:creator>
      <dc:date>2025-10-30T07:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: dbt Cloud + Databricks SQL Warehouse with microbatching (48h lookback) — intermittent failures</title>
      <link>https://community.databricks.com/t5/data-engineering/dbt-cloud-databricks-sql-warehouse-with-microbatching-48h/m-p/136760#M50643</link>
      <description>&lt;P&gt;Here are few options&amp;nbsp; you can try and see if it resolves your issue.&lt;/P&gt;&lt;P&gt;1. SQL Warehouse Tuning&lt;/P&gt;&lt;P&gt;Use Serverless SQL Warehouse with Photon for faster spin-up and query execution. [docs.getdbt.com]&lt;BR /&gt;Size Appropriately: Start with Medium or Large, and enable auto-scaling for concurrency.&lt;BR /&gt;Keep Warehouse Warm: Schedule a lightweight query every 10–15 minutes to prevent cold starts.&lt;/P&gt;&lt;P&gt;2. Microbatch Optimization&lt;/P&gt;&lt;P&gt;Reduce Lookback: Try lowering from 48h to 24h or 12h, especially if late-arriving data is rare.&lt;BR /&gt;Set event_time on all upstream models to avoid full scans.&lt;BR /&gt;Tune concurrent_batches: Explicitly set this to a lower value (e.g., 2–4) to reduce parallel query load.&lt;/P&gt;&lt;P&gt;3. dbt Cloud Job Resiliency&lt;/P&gt;&lt;P&gt;Enable Job Retries: Configure retries with exponential backoff in dbt Cloud.&lt;BR /&gt;Split Models into Multiple Jobs: Break the 27 models into logical groups to reduce thread contention.&lt;BR /&gt;Use dbt Artifacts for Monitoring: Track model run times and failures using the dbt_artifacts package.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 14:48:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbt-cloud-databricks-sql-warehouse-with-microbatching-48h/m-p/136760#M50643</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-10-30T14:48:43Z</dc:date>
    </item>
  </channel>
</rss>

