KIC opened a new issue #12028:
URL: https://github.com/apache/airflow/issues/12028


   **Description**
   
   Files are not part of the templated fields in the `EmailOperator` 
https://airflow.apache.org/docs/stable/_modules/airflow/operators/email_operator.html
   
   Whle in fact file names should also be templated .
   
   **Use case / motivation**
   We want to store files accordingly to the DAGs execution date and further 
send them to email recipients like so:
   
   ```
   send_report_email = EmailOperator(
           ....
           files=[
               "/tmp/Report-A-{{ execution_date.strftime('%Y-%m-%d') }}.csv",
               "/tmp/Reportt-B-{{ execution_date.strftime('%Y-%m-%d') }}.csv"
           ]
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to