Skip to content

Commit

Permalink
cast dask_visitor.bags.values() to list in dask.optimize call
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Oct 12, 2023
1 parent 32ee6e1 commit 305699b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdks/python/apache_beam/runners/dask/dask_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def run_pipeline(self, pipeline, options):

dask_visitor = self.to_dask_bag_visitor()
pipeline.visit(dask_visitor)

opt_graph = dask.optimize(dask_visitor.bags.values())
opt_graph = dask.optimize(list(dask_visitor.bags.values()))
futures = client.compute(opt_graph)
return DaskRunnerResult(client, futures)

0 comments on commit 305699b

Please sign in to comment.