BasPH edited a comment on issue #5611: [AIRFLOW-4724] Make params dict to be templated for operators URL: https://github.com/apache/airflow/pull/5611#issuecomment-513480002 Answering your question: params in not templated by default, nor by the BashOperator. You can check in any operator which attributes are templated by looking for the `template_fields` attribute. In the BashOperator, you'll see the `bash_command` in there and thus you could run your operator as such: ```python upload_file_ftp_op = BashOperator( task_id='upload_file_ftp_task', bash_command="python3.6 /home/ubuntu/airflow/scripts/ranker.py product_dwh-{{ execution_date.strftime('%s') }}.csv" , dag=dag, ) ```
---------------------------------------------------------------- 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] With regards, Apache Git Services
