So I am REALLY new to Airflow, DAGs, the whole nine.
So I have a task where I need to email some data to a list of recipients.
Right now, I have a python function which will send emails, and I was gonna assign this function to a task in my DAG.
However, in the task I was given, I was told that an admin should be able to trigger the DAG, such that additional recipients can receive the data by passing their emails through the airflow configuration json. I am assuming this means, airflow.cfg.
I have been googling for advice, but it seems like most people set up the email section in their airflow.cfg file to just send them an email if there's an error in the dag, not to a list of recipients.
I want to know:
-If I pass a list of email recipients through my airflow.cfg file, can I still assign this email sending process to a task in the DAG?