feluelle commented on a change in pull request #5451: [AIRFLOW-4805] Add 
py_file as templated field in DataflowPythonOperator
URL: https://github.com/apache/airflow/pull/5451#discussion_r296448405
 
 

 ##########
 File path: airflow/contrib/operators/dataflow_operator.py
 ##########
 @@ -335,7 +335,7 @@ class DataFlowPythonOperator(BaseOperator):
         JOB_STATE_RUNNING state.
     :type poll_sleep: int
     """
-    template_fields = ['options', 'dataflow_default_options', 'job_name']
+    template_fields = ['options', 'dataflow_default_options', 'job_name', 
py_file]
 
 Review comment:
   You need to pass the arguments as strings like so
   ```suggestion
       template_fields = ['options', 'dataflow_default_options', 'job_name', 
'py_file']
   ```

----------------------------------------------------------------
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

Reply via email to