πŸ“§Email Notification

Send an email notification to the active user

import markov

def execute_long_running_operation():
    # Long running job for example model training etc. 
    return None

try:
    outcome = execute_long_running_operation()
    # Triggers email notification
    markov.notify(title="Long running operation", text="Successfully completed operation")
except Exception as e:
    # Triggers email notification
    markov.notify(title="Long running operation", text="Failed to complete operation")

title would be part of the email subject line text would be part of the email body

Last updated