-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -376,6 +376,39 @@ The Task Component automatically generated from the above JSON is as follows: | |
|
||
</details> | ||
|
||
## SMTP | ||
|
||
### 1. Add SMTP info | ||
file path : /_airflow/docker-compose.yml | ||
modify docker-compose.yml file and enter your smtp info. | ||
gmail example : https://support.google.com/a/answer/176600?hl=en | ||
|
||
``` | ||
... | ||
airflow-server: | ||
environment: | ||
AIRFLOW__SMTP__SMTP_HOST: 'smtp.gmail.com' | ||
AIRFLOW__SMTP__SMTP_USER: '[email protected]' | ||
AIRFLOW__SMTP__SMTP_PASSWORD: 'wtknvaprkkwyaurd' | ||
AIRFLOW__SMTP__SMTP_PORT: 587 | ||
AIRFLOW__SMTP__SMTP_MAIL_FROM: '[email protected]' | ||
... | ||
``` | ||
### 2. Modify mail.py | ||
file path : /_airflow/airflow-home/dags/mail.py | ||
Modify the recipient's email address in the email_task. | ||
``` | ||
... | ||
email_task = EmailOperator( | ||
task_id='send_email', | ||
to='Your [email protected]', | ||
subject='DAG 상태 보고서', | ||
... | ||
) | ||
... | ||
``` | ||
|
||
### 3. Add taskComponent | ||
## Health-check | ||
|
||
Check if CM-Cicada is running | ||
|