Skip to content

Commit

Permalink
Fix minor bug: main session needs to be saved. (#120)
Browse files Browse the repository at this point in the history
* Fix minor bug: main session needs to be saved.
  • Loading branch information
alxmrs authored Mar 24, 2022
1 parent 3c1eb53 commit fd0c5e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions weather_dl/download_pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import apache_beam as beam
from apache_beam.options.pipeline_options import (
PipelineOptions,
SetupOptions,
StandardOptions,
)

Expand Down Expand Up @@ -136,8 +135,7 @@ def run(argv: t.List[str], save_main_session: bool = True) -> PipelineArgs:

# We use the save_main_session option because one or more DoFn's in this
# workflow rely on global context (e.g., a module imported at module level).
pipeline_options = PipelineOptions(pipeline_args)
pipeline_options.view_as(SetupOptions).save_main_session = save_main_session
pipeline_options = PipelineOptions(pipeline_args + '--save_main_session True'.split())

client_name = config['parameters']['client']
store = None # will default to using FileSystems()
Expand Down

0 comments on commit fd0c5e4

Please sign in to comment.