potiuk commented on a change in pull request #20610:
URL: https://github.com/apache/airflow/pull/20610#discussion_r777046585
##########
File path: airflow/providers/apache/beam/operators/beam.py
##########
@@ -454,13 +455,22 @@ def execute(self, context: 'Context'):
job_class=self.job_class,
process_line_callback=process_line_callback,
)
- self.dataflow_hook.wait_for_done(
- job_name=dataflow_job_name,
- location=self.dataflow_config.location,
- job_id=self.dataflow_job_id,
- multiple_jobs=self.dataflow_config.multiple_jobs,
- project_id=self.dataflow_config.project_id,
- )
+ if dataflow_job_name and self.dataflow_config.location:
+ if self.dataflow_config.multiple_jobs:
+ self.dataflow_hook.wait_for_done(
+ job_name=dataflow_job_name,
+ location=self.dataflow_config.location,
+ job_id=self.dataflow_job_id,
+
multiple_jobs=self.dataflow_config.multiple_jobs,
Review comment:
Easy - default is False if not set.
```
mutltiple_jobs = self.dataflow_config.mutliple_jobs if
self.dataflow_config.multiple_jobs else False
....
mutltiple_jobs=multiple_jobs,
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]