How to add template variable in the filename of an EmailOperator task? (Airflow)
问题 I can't seem to get this to work. I am trying to send daily a given file, whose name is like 'file_{{ds_nodash}}.csv'. The problem is that I can't seem to add this name as the filename, since it seems it cant be used. In the text of the email or the subject works perfectly, not not on the name. Here is the dag as an example: local_file = 'file-{{ds_nodash}}.csv' send_stats_csv = EmailOperator( task_id='send-stats-csv', to=['email@gmail.com'], subject='Subject - {{ ds }}', html_content='Here