You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Here, we demonstrate submitting a job through the Python API that uses an email callback.
Do not use sys.exit() to return from the script, it will kill the supervisor thread that's running the callback process.
Note: supervisor_language_flags must contain "mail" or this callback will silently fail.
See the mail_* parameters from Configuration Parameter Reference for how to both setup mail and adjust the various mail templates.