mik-laj commented on a change in pull request #8809:
URL: https://github.com/apache/airflow/pull/8809#discussion_r439207592



##########
File path: airflow/providers/google/cloud/example_dags/example_dataflow.py
##########
@@ -108,9 +114,16 @@
     )
     # [END howto_operator_start_python_job]
 
+    py_to_local = GCSToLocalOperator(
+        task_id="py-to-local",
+        bucket=GCS_PYTHON_BUCKET_NAME,
+        object_name=GCS_PYTHON_OBJECT_NAME,
+        filename="/tmp/dataflow-{{ ds_nodash }}.py",
+    )
+
     start_python_job_local = DataflowCreatePythonJobOperator(
         task_id="start-python-job-local",
-        py_file='apache_beam.examples.wordcount',
+        py_file='/tmp/dataflow-{{ ds_nodash }}.py',
         py_options=['-m'],

Review comment:
       If you use the -m option, you should specify the module, not the file 
name. 




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