<?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>question Re: CDSW Jobs are shown as &amp;quot;Success&amp;quot; when python code throws an Exception in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/370221#M240650</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93628"&gt;@DianaTorres&lt;/a&gt; , any updates on this?&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 07:39:47 GMT</pubDate>
    <dc:creator>cdsw_user_23432</dc:creator>
    <dc:date>2023-05-08T07:39:47Z</dc:date>
    <item>
      <title>CDSW Jobs are shown as "Success" when python code throws an Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/369478#M240496</link>
      <description>&lt;P&gt;We have several CDSW jobs set up where we call a python script with a main() function which is called via&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if __name__ ==&amp;nbsp; "__main__":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our problem is that these jobs are erronously shown as "Success" even if the python code throws an Exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we set up our CDSW such that these jobs are correctly shown as "Failure"?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:15:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/369478#M240496</guid>
      <dc:creator>cdsw_user_23432</dc:creator>
      <dc:date>2026-04-21T07:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW Jobs are shown as "Success" when python code throws an Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/369492#M240500</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104808"&gt;@cdsw_user_23432&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our CDSW experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28743"&gt;@Gopinath&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/25179"&gt;@Mike&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:55:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/369492#M240500</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-04-26T15:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW Jobs are shown as "Success" when python code throws an Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/369666#M240523</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93628"&gt;@DianaTorres&lt;/a&gt; .&lt;/P&gt;&lt;P&gt;I'm looking forward to hearing back from your team&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 19:10:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/369666#M240523</guid>
      <dc:creator>cdsw_user_23432</dc:creator>
      <dc:date>2023-04-27T19:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW Jobs are shown as "Success" when python code throws an Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/370221#M240650</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93628"&gt;@DianaTorres&lt;/a&gt; , any updates on this?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 07:39:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/370221#M240650</guid>
      <dc:creator>cdsw_user_23432</dc:creator>
      <dc:date>2023-05-08T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW Jobs are shown as "Success" when python code throws an Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/370225#M240653</link>
      <description>&lt;P&gt;seems to be a gap in the exception handling.&amp;nbsp; Could you please share the actual script snippet for analysis.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 08:32:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/370225#M240653</guid>
      <dc:creator>Gopinath</dc:creator>
      <dc:date>2023-05-08T08:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW Jobs are shown as "Success" when python code throws an Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/371247#M240933</link>
      <description>&lt;P&gt;Thank you for your reply, which made me take a closer look at which exceptions were handled unexpectedly and I found that the use of rich.traceback.install() in one of the scripts messed up the return status of the CDSW Job.&lt;/P&gt;&lt;P&gt;The issue was solved by removing rich.traceback.install() from the code, which is only cosmetic anyhow&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 10:14:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/371247#M240933</guid>
      <dc:creator>cdsw_user_23432</dc:creator>
      <dc:date>2023-05-22T10:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW Jobs are shown as "Success" when python code throws an Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/371279#M240941</link>
      <description>&lt;P&gt;Congratulations on resolving the issue&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104808"&gt;@cdsw_user_23432&lt;/a&gt;.&amp;nbsp;Please use the "Accept as Solution" button to mark the reply that resolved the issue for you. It helps others in a similar situation find assistance in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:50:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-Jobs-are-shown-as-quot-Success-quot-when-python-code/m-p/371279#M240941</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2023-05-22T13:50:47Z</dc:date>
    </item>
  </channel>
</rss>

