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 linetext
will be included in the email body
Updated 9 months ago