<?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 Try catch multiple write streams on a job in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28146#M19969</link>
    <description>&lt;P&gt;We are having issues with checkpoints and schema versions getting out of date (no idea why), but it causes jobs to fail.  We have jobs that are running 15-30 streaming queries, so if one fails, that creates an issue.  I would like to trap the checkpoint errors, and just reset the checkpoint and log a failure.  Not optimal because then I'm reprocessing the stream or at least the window we are looking at.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the problem I have is it seems the only way to error trap the stream is to use an awaitTermination()... this locks up notebook and the next streams won't start until the first stream is terminated.  The awaitAnyTermination() won't catch when the job starts up and an error occurs because the job stops before hitting the awaitAnyTermination?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 23:03:40 GMT</pubDate>
    <dc:creator>AdamRink</dc:creator>
    <dc:date>2022-02-14T23:03:40Z</dc:date>
    <item>
      <title>Try catch multiple write streams on a job</title>
      <link>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28146#M19969</link>
      <description>&lt;P&gt;We are having issues with checkpoints and schema versions getting out of date (no idea why), but it causes jobs to fail.  We have jobs that are running 15-30 streaming queries, so if one fails, that creates an issue.  I would like to trap the checkpoint errors, and just reset the checkpoint and log a failure.  Not optimal because then I'm reprocessing the stream or at least the window we are looking at.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the problem I have is it seems the only way to error trap the stream is to use an awaitTermination()... this locks up notebook and the next streams won't start until the first stream is terminated.  The awaitAnyTermination() won't catch when the job starts up and an error occurs because the job stops before hitting the awaitAnyTermination?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 23:03:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28146#M19969</guid>
      <dc:creator>AdamRink</dc:creator>
      <dc:date>2022-02-14T23:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Try catch multiple write streams on a job</title>
      <link>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28148#M19971</link>
      <description>&lt;P&gt;Thx Kaniz&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 19:53:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28148#M19971</guid>
      <dc:creator>AdamRink</dc:creator>
      <dc:date>2022-02-15T19:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Try catch multiple write streams on a job</title>
      <link>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28150#M19973</link>
      <description>&lt;P&gt;The problem is that on startup if a stream fails, it would never hit the awaitAnyTermination?  I almost want to take that while loop and put it on a background thread to start that at the beginning and then fire all the streams afterward... not sure if that is possible?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 17:22:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28150#M19973</guid>
      <dc:creator>AdamRink</dc:creator>
      <dc:date>2022-02-23T17:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Try catch multiple write streams on a job</title>
      <link>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28151#M19974</link>
      <description>&lt;P&gt;Hi @Adam Rink​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Do you still need help or @Kaniz Fatma​&amp;nbsp;response help to resolve your question?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 22:36:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/try-catch-multiple-write-streams-on-a-job/m-p/28151#M19974</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-04-05T22:36:52Z</dc:date>
    </item>
  </channel>
</rss>

