<?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 Task runs missing from system database in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/task-runs-missing-from-system-database/m-p/89340#M8294</link>
    <description>&lt;P&gt;I have a workflow with 11 tasks (each task executes one notebook) that run in sequence.&amp;nbsp; The task was run on 9/1 and again today (9/10).&amp;nbsp; I am working reporting task history and status using system table `&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;system&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;lakeflow&lt;/SPAN&gt;&lt;SPAN&gt;.job_task_run_timeline`.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The state of the notebooks is such that all tasks succeed except for #7, which fails on each of its three attempts.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I query the system table for records where job_run_id matches the value of the run from 9/1, I get 13 records (10 from the tasks that succeed, 3 for the attempts at task #7).&amp;nbsp; All is well.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I query the system table for records where job_run_id matches the value of the run from 9/10, I get only 7 records:&amp;nbsp; successes on tasks 1-6, and only the first attempt at task #7.&amp;nbsp; Attempts 2 and 3 of task #7 are missing from the table, as are tasks #8-11.&amp;nbsp; I emphasize, however, that in the Workflows screens, it's utterly plain to see that all 13 task attempts (10 successful, 3 failed) were executed.&amp;nbsp; I can easily click into the fully executed notebook instance for task #9, for example.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is not good, I think.&amp;nbsp; Where are the records for the remaining task runs of 9/10?&amp;nbsp; What was it about attempt 1 of task #7 that short-circuited the rest of the recording of tasks?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Footnote:&amp;nbsp; the only difference between the conditions for 9/1 vs. the conditions for 9/10 is that 9/1 was run from a trigger, while 9/10 was run manually by clicking "Run Now".&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 Sep 2024 18:29:50 GMT</pubDate>
    <dc:creator>DavidKxx</dc:creator>
    <dc:date>2024-09-10T18:29:50Z</dc:date>
    <item>
      <title>Task runs missing from system database</title>
      <link>https://community.databricks.com/t5/get-started-discussions/task-runs-missing-from-system-database/m-p/89340#M8294</link>
      <description>&lt;P&gt;I have a workflow with 11 tasks (each task executes one notebook) that run in sequence.&amp;nbsp; The task was run on 9/1 and again today (9/10).&amp;nbsp; I am working reporting task history and status using system table `&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;system&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;lakeflow&lt;/SPAN&gt;&lt;SPAN&gt;.job_task_run_timeline`.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The state of the notebooks is such that all tasks succeed except for #7, which fails on each of its three attempts.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I query the system table for records where job_run_id matches the value of the run from 9/1, I get 13 records (10 from the tasks that succeed, 3 for the attempts at task #7).&amp;nbsp; All is well.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I query the system table for records where job_run_id matches the value of the run from 9/10, I get only 7 records:&amp;nbsp; successes on tasks 1-6, and only the first attempt at task #7.&amp;nbsp; Attempts 2 and 3 of task #7 are missing from the table, as are tasks #8-11.&amp;nbsp; I emphasize, however, that in the Workflows screens, it's utterly plain to see that all 13 task attempts (10 successful, 3 failed) were executed.&amp;nbsp; I can easily click into the fully executed notebook instance for task #9, for example.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is not good, I think.&amp;nbsp; Where are the records for the remaining task runs of 9/10?&amp;nbsp; What was it about attempt 1 of task #7 that short-circuited the rest of the recording of tasks?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Footnote:&amp;nbsp; the only difference between the conditions for 9/1 vs. the conditions for 9/10 is that 9/1 was run from a trigger, while 9/10 was run manually by clicking "Run Now".&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Sep 2024 18:29:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/task-runs-missing-from-system-database/m-p/89340#M8294</guid>
      <dc:creator>DavidKxx</dc:creator>
      <dc:date>2024-09-10T18:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Task runs missing from system database</title>
      <link>https://community.databricks.com/t5/get-started-discussions/task-runs-missing-from-system-database/m-p/89344#M8295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/94566"&gt;@DavidKxx&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;There are chances that the table has not been updated today.&lt;BR /&gt;Check tomorrow.&lt;BR /&gt;&lt;BR /&gt;Here what the &lt;A href="https://docs.databricks.com/en/admin/system-tables/index.html" target="_self"&gt;documentation&lt;/A&gt; says:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filipniziol_0-1725993627072.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11051iC480EA6821100494/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filipniziol_0-1725993627072.png" alt="filipniziol_0-1725993627072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 18:41:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/task-runs-missing-from-system-database/m-p/89344#M8295</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-10T18:41:02Z</dc:date>
    </item>
  </channel>
</rss>

