<?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 start another workflow waiting the completion of a job-run of the same workflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/start-another-workflow-waiting-the-completion-of-a-job-run-of/m-p/100116#M40191</link>
    <description>&lt;P&gt;Hello community,&lt;BR /&gt;I'm using DABs I want to know if It is possible to configure the yaml file a logic that allows me to run a workflow if the previous job run is finished of the same workflow. Is it possible to do it? Do I need to create a task that checks this job execution?&lt;/P&gt;&lt;P&gt;Thanks to everyone,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 15:02:55 GMT</pubDate>
    <dc:creator>jeremy98</dc:creator>
    <dc:date>2024-11-26T15:02:55Z</dc:date>
    <item>
      <title>start another workflow waiting the completion of a job-run of the same workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/start-another-workflow-waiting-the-completion-of-a-job-run-of/m-p/100116#M40191</link>
      <description>&lt;P&gt;Hello community,&lt;BR /&gt;I'm using DABs I want to know if It is possible to configure the yaml file a logic that allows me to run a workflow if the previous job run is finished of the same workflow. Is it possible to do it? Do I need to create a task that checks this job execution?&lt;/P&gt;&lt;P&gt;Thanks to everyone,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 15:02:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/start-another-workflow-waiting-the-completion-of-a-job-run-of/m-p/100116#M40191</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2024-11-26T15:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: start another workflow waiting the completion of a job-run of the same workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/start-another-workflow-waiting-the-completion-of-a-job-run-of/m-p/100138#M40199</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133094"&gt;@jeremy98&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;Yes, it is possible to configure a YAML file to run a workflow only if the previous job run of the same workflow has finished. You can achieve this by defining dependencies between tasks within the workflow.&lt;/P&gt;
&lt;P class="p1"&gt;You can specify task dependencies using the depends_on field in your YAML configuration. This ensures that a task will only run after the specified dependent tasks have completed successfully&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Example code:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;bundle:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;name: example-bundle&lt;/P&gt;
&lt;P class="p1"&gt;resources:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;jobs:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;example-job:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;name: example-job&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;tasks:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;- task_key: task1&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;notebook_task:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;notebook_path: /path/to/notebook1&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;- task_key: task2&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;depends_on:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;- task_key: task1&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;notebook_task:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;notebook_path: /path/to/notebook2&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Please see:&amp;nbsp;&lt;A href="https://github.com/databricks/bundle-examples/blob/6558a732f4f21e2de7440aa0aadfd9ed8f845395/default_python/resources/default_python_job.yml" target="_blank"&gt;https://github.com/databricks/bundle-examples/blob/6558a732f4f21e2de7440aa0aadfd9ed8f845395/default_python/resources/default_python_job.yml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 16:55:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/start-another-workflow-waiting-the-completion-of-a-job-run-of/m-p/100138#M40199</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-11-26T16:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: start another workflow waiting the completion of a job-run of the same workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/start-another-workflow-waiting-the-completion-of-a-job-run-of/m-p/100141#M40200</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp; for this solution, but I mean I need to execute only one notebook task in the job, so the depends_on isn't possible to set. Do u mean that I need to create a first task that is a check_monitoring_job that checks if any other job is still running and later when it is finished execute the last one (my interested ingestion task)?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 17:07:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/start-another-workflow-waiting-the-completion-of-a-job-run-of/m-p/100141#M40200</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2024-11-26T17:07:03Z</dc:date>
    </item>
  </channel>
</rss>

