-
Couldn't load subscription status.
- Fork 8
Open
Labels
Description
We can now create Markdown-based DAG documentation that appears in the Airflow UI, we should standardize them across all of our dags.
https://docs.astronomer.io/learn/custom-airflow-ui-docs-tutorial
For Dag level doc, proposing:
### [Frequency] [data source] [verb]
One liner of what this DAG does.
If ETL:
Extracted from:
Transformation/Data Quality Checks:
Loads to: [schema.table][database]
example:
### Daily HERE pull
This DAG runs daily to pull here data from traffic analytics' API to here.ta in
the bigdata database using Taskflow. Slack notifications is raised when the airflow
process fails.
Extracted from: HERE API
Transformation/Data Quality Checks: None
Loads to: here.ta (bigdata)
For task level doc:
### Name of the task
One liner of what this task does, if functions were used, list out functionsexample:
### Task load_data_run
This task uses BashOperator to load data by `curl` the download_url retrieved
from the previous task (get_download_link), gunzip the file and directly pipes
to here.ta_view_path` using psql. ### Task send_request
This task sends a request to the HERE API and returns an access token to be used in the following tasks.
Function used:
get_access_token(pwd, client_secret, token_url)gabrielwol and radumas