<?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: How can I exit from a Notebook which is used as a job? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30652#M22245</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;This does not work. When I have a cell (I am using pyspark) that has the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;quit()&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Databricks skips over that particular cell,but still runs the next cell. 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 14:26:50 GMT</pubDate>
    <dc:creator>Josh</dc:creator>
    <dc:date>2019-01-08T14:26:50Z</dc:date>
    <item>
      <title>How can I exit from a Notebook which is used as a job?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30650#M22243</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How can I quit from a notebook in the middle of an execution based on some condition?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2015 15:21:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30650#M22243</guid>
      <dc:creator>User16301465121</dc:creator>
      <dc:date>2015-04-18T15:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I exit from a Notebook which is used as a job?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30651#M22244</link>
      <description>&lt;P&gt;@Mohan Kolli&lt;/P&gt;
&lt;P&gt;The simple way to terminate execution based on a condition is to throw an exception; doing so will cause the run to terminate immediately. However, doing so will also cause the job to have a 'Failed' status.&lt;/P&gt;
&lt;P&gt;In order to to maintain correctness semantics, you'd need to wrap each command in in a Try/Catch clause, and if the particular condition is met to simply perform a No-Op so that the run will complete successfully.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 05:46:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30651#M22244</guid>
      <dc:creator>arsalan1</dc:creator>
      <dc:date>2015-05-18T05:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I exit from a Notebook which is used as a job?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30652#M22245</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;This does not work. When I have a cell (I am using pyspark) that has the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;quit()&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Databricks skips over that particular cell,but still runs the next cell. 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 14:26:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30652#M22245</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2019-01-08T14:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I exit from a Notebook which is used as a job?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30653#M22246</link>
      <description>&lt;P&gt;exit(value: String): void&lt;/P&gt;&lt;P&gt;Calling &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.notebook.exit&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; in a job causes the notebook to complete successfully. If you want to cause the job to fail, throw an exception. &lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 18:32:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-exit-from-a-notebook-which-is-used-as-a-job/m-p/30653#M22246</guid>
      <dc:creator>SamsonXia</dc:creator>
      <dc:date>2019-05-28T18:32:20Z</dc:date>
    </item>
  </channel>
</rss>

