Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yby654 authored Nov 25, 2024
1 parent 34e0d46 commit 3e0e140
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e0e140

Please sign in to comment.