Skip to content

Commit

Permalink
Allow unsafe triggers for python nexmark benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
y1chi committed Aug 4, 2022
1 parent c8d92b0 commit 3fb0ddc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
from apache_beam.options.pipeline_options import PipelineOptions
from apache_beam.options.pipeline_options import SetupOptions
from apache_beam.options.pipeline_options import StandardOptions
from apache_beam.options.pipeline_options import TypeOptions
from apache_beam.runners import PipelineState
from apache_beam.testing.benchmarks.nexmark import nexmark_util
from apache_beam.testing.benchmarks.nexmark.monitor import Monitor
Expand Down Expand Up @@ -180,6 +181,7 @@ def parse_args(self):
# Usage with Dataflow requires a project to be supplied.
self.project = self.pipeline_options.view_as(GoogleCloudOptions).project
self.streaming = self.pipeline_options.view_as(StandardOptions).streaming
self.pipeline_options.view_as(TypeOptions).allow_unsafe_triggers = True

if self.streaming:
if self.args.subscription_name is None or self.project is None:
Expand Down

0 comments on commit 3fb0ddc

Please sign in to comment.