In this segment, you will learn about the Email operator in Airflow.
Let’s watch the upcoming video as Ajay introduces us to this operator. So, in the video, we discussed Email operator.
The EmailOperator is used for alerting task events, such as task completion, task failure, task fail on retry. It is also used to send attachments containing error messages or logs along with emails.
Some important arguments for the EmailOperator are as follows:
- to: List of receiver emails
- subject: Subject of the email
- html_content: Content of the email; HTML markup is used
- files: Files to attach to an email
Note:
The task_id and dag arguments have to be mentioned for all operators.
As mentioned in the video, we will not be doing a demonstration for the EmailOperator.
In the next segment, you will learn about the Base operator in Airflow.
Report an error