<?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 Databricks Job scheduling - continuous mode in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/38861#M26793</link>
    <description>&lt;P&gt;While scheduling the Databricks job using continuous mode - what will happen if the job is configured to run with Job cluster.&lt;/P&gt;&lt;P&gt;At the end of each run will the cluster be terminated and re-created again for the next run? The official documentation is not clear but it only mentioned that there will be a slight delay and it will be less than 60 seconds.&lt;/P&gt;&lt;P&gt;But a quick practical check for this scenario, points in the direction that the cluster is getting re-created, because a simple do nothing notebook is taking 2 minutes to completed and from the logs it looks like different clusters are used. Not conclusive though.&lt;/P&gt;&lt;P&gt;Appreciate any thoughts on the same - because logically the continuous option should re-use the cluster (to save on the start-up time), otherwise the value this option brings is limited.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 18:30:03 GMT</pubDate>
    <dc:creator>smurug</dc:creator>
    <dc:date>2023-08-01T18:30:03Z</dc:date>
    <item>
      <title>Databricks Job scheduling - continuous mode</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/38861#M26793</link>
      <description>&lt;P&gt;While scheduling the Databricks job using continuous mode - what will happen if the job is configured to run with Job cluster.&lt;/P&gt;&lt;P&gt;At the end of each run will the cluster be terminated and re-created again for the next run? The official documentation is not clear but it only mentioned that there will be a slight delay and it will be less than 60 seconds.&lt;/P&gt;&lt;P&gt;But a quick practical check for this scenario, points in the direction that the cluster is getting re-created, because a simple do nothing notebook is taking 2 minutes to completed and from the logs it looks like different clusters are used. Not conclusive though.&lt;/P&gt;&lt;P&gt;Appreciate any thoughts on the same - because logically the continuous option should re-use the cluster (to save on the start-up time), otherwise the value this option brings is limited.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:30:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/38861#M26793</guid>
      <dc:creator>smurug</dc:creator>
      <dc:date>2023-08-01T18:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Job scheduling - continuous mode</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/38894#M26807</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/48182"&gt;@smurug&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job Cluster has been designed to be unique for each run of a job. So, each run of your job would run against a new job cluster.&lt;/P&gt;&lt;P&gt;If you want your job to run continuously without any delay and to re-use the cluster, I would recommend to use a dedicated interactive cluster. In this case, the cluster would be retained across job runs and your job runs would be instantly executed after the previous run is completed.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 07:34:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/38894#M26807</guid>
      <dc:creator>Tharun-Kumar</dc:creator>
      <dc:date>2023-08-02T07:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Job scheduling - continuous mode</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/38940#M26823</link>
      <description>&lt;P&gt;Thanks for the response - Yes we are doing this currently (using interactive cluster), however following are the pointers which are being considered for re-evaluating this approach and arrive at a possible alternative (if possible)&lt;/P&gt;&lt;P&gt;1) Cost difference between Interactive and Job cluster&lt;/P&gt;&lt;P&gt;2) In the Production environment, the following error is being received every now and then -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;run failed with error message Context ExecutionContextId(1496834584910869936) is disconnected.. While this error can be received for multiple reasons, cluster resource constraints is one of the main reasons as per the understanding. Hence the thought process is to have individual Job clusters for different jobs, which can be scaled independently, hence this will result in making dedicated resources available for the Jobs rather than shared resources from interactive cluster across all jobs. However it might not be feasible to create many interactive cluster consider the costing, hence using Job cluster can offset some of this cost and help in reducing the overall cost.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Further, searching around the net - found this article&amp;nbsp;&lt;A href="https://medium.com/@24chynoweth/continuous-jobs-and-file-triggers-in-databricks-e7ba51a0c93a" target="_blank"&gt;https://medium.com/@24chynoweth/continuous-jobs-and-file-triggers-in-databricks-e7ba51a0c93a&lt;/A&gt;&amp;nbsp;which mentioned about resources being re-used.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, the official documentation,&amp;nbsp;&lt;A href="https://docs.databricks.com/workflows/jobs/schedule-jobs.html" target="_blank"&gt;https://docs.databricks.com/workflows/jobs/schedule-jobs.html&lt;/A&gt;&amp;nbsp;- does not mention anything clearly about the re-use / termination, but mentions that there will be a slight delay which will be less than 60 seconds. Hence if the cluster needs to be re-created, I don't think it can guarantee only 60 seconds delay.&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:30:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/38940#M26823</guid>
      <dc:creator>smurug</dc:creator>
      <dc:date>2023-08-02T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Job scheduling - continuous mode</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/46716#M28102</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/1924"&gt;@youssefmrini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how is the DBU calculated? As the cluster is reused, the DBU should be calculated per hour on all the jobs run in an hour correct? Or will it be calculated based on each run?&lt;/P&gt;&lt;P&gt;I would like to know the cost calculation when running the continuous job&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 08:49:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-scheduling-continuous-mode/m-p/46716#M28102</guid>
      <dc:creator>Jo5h</dc:creator>
      <dc:date>2023-09-29T08:49:19Z</dc:date>
    </item>
  </channel>
</rss>

