You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/24 09:45:43 UTC
[GitHub] [beam] DLumi commented on issue #22039: [Bug]: unable to set up multiprocessing
DLumi commented on issue #22039:
URL: https://github.com/apache/beam/issues/22039#issuecomment-1165401653
The Exception triggers on this snippet:
```
import apache_beam as beam
from apache_beam.runners.direct.direct_runner import DirectRunner
from apache_beam.options.pipeline_options import DirectOptions, PipelineOptions
if __name__ == '__main__':
pipeline_options = PipelineOptions()
runner = DirectRunner()
# Tried passing those to PipelineOptions as well, same result
pipeline_options.view_as(DirectOptions).direct_running_mode = 'multi_threading'
pipeline_options.view_as(DirectOptions).direct_num_workers = 0
with beam.Pipeline(runner=runner, options=pipeline_options) as p:
inputs = p | 'Create' >> beam.Create([{'foo': 'bar'}, {'spam': 'eggs'}])```
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org