<?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 Conditional email notification based on if statement - dbutils in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/conditional-email-notification-based-on-if-statement-dbutils/m-p/71486#M3326</link>
    <description>&lt;P&gt;Is it possible to trigger an email notification based on a conditional statement in Python without exiting the process?&lt;/P&gt;&lt;P&gt;Specifically, I have a robustness check in my prediction pipeline that performs simple imputation when encountering missing data. This check is very rarely needed, but it becomes necessary when a new entity is forecasted and one of the input tables hasn't been updated properly. In those instances, I much rather using an imputing strategy than breaking the whole pipeline but I want to be alerted when this occurs so I can investigate and update the problematic data if necessary.&lt;/P&gt;&lt;P&gt;I know this can be achieved by writing a function to send an email, with a separate job or with many other ways but I'm wondering if there's a way to do this using the dbutils package, similar to dbutils.notebook.exit(). Is there a function that inherits the job notification parameters that we could leverage to send this information? I feel like this would be much cleaner, but let me know if you see an issue with this practice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 14:16:59 GMT</pubDate>
    <dc:creator>racicot</dc:creator>
    <dc:date>2024-06-03T14:16:59Z</dc:date>
    <item>
      <title>Conditional email notification based on if statement - dbutils</title>
      <link>https://community.databricks.com/t5/machine-learning/conditional-email-notification-based-on-if-statement-dbutils/m-p/71486#M3326</link>
      <description>&lt;P&gt;Is it possible to trigger an email notification based on a conditional statement in Python without exiting the process?&lt;/P&gt;&lt;P&gt;Specifically, I have a robustness check in my prediction pipeline that performs simple imputation when encountering missing data. This check is very rarely needed, but it becomes necessary when a new entity is forecasted and one of the input tables hasn't been updated properly. In those instances, I much rather using an imputing strategy than breaking the whole pipeline but I want to be alerted when this occurs so I can investigate and update the problematic data if necessary.&lt;/P&gt;&lt;P&gt;I know this can be achieved by writing a function to send an email, with a separate job or with many other ways but I'm wondering if there's a way to do this using the dbutils package, similar to dbutils.notebook.exit(). Is there a function that inherits the job notification parameters that we could leverage to send this information? I feel like this would be much cleaner, but let me know if you see an issue with this practice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:16:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/conditional-email-notification-based-on-if-statement-dbutils/m-p/71486#M3326</guid>
      <dc:creator>racicot</dc:creator>
      <dc:date>2024-06-03T14:16:59Z</dc:date>
    </item>
  </channel>
</rss>

