Email Notifications

Get notified once your job is over.

Notify by Email (Current 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")

The method to notify takes two parameters:

  • title will be included in the email subject line
  • text will be included in the email body