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 3e0e140 commit 1e998d3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,12 @@ The Task Component automatically generated from the above JSON is as follows:

### 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:
Expand All @@ -396,7 +399,9 @@ gmail example : https://support.google.com/a/answer/176600?hl=en
```
### 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(
Expand All @@ -409,6 +414,22 @@ Modify the recipient's email address in the email_task.
```

### 3. Add taskComponent
Add trigger_email task component at the bottom of the workflow to receive email alarms.

```
...
{
"name": "trigger_email",
"task_component": "trigger_email",
"request_body": "",
"path_params": {},
"dependencies": [
"{$Pre_taskName}"
]
}
...
```
## Health-check

Check if CM-Cicada is running
Expand Down

0 comments on commit 1e998d3

Please sign in to comment.