Skip to content

Commit

Permalink
Fix issue where parallelism dicts did not work with sparse run
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Aug 29, 2017
1 parent e42803f commit bafb72b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions streamparse/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ def run_local_topology(name=None, env_name=None, time=0, options=None):
storm_options['topology.acker.executors'] = 1
storm_options['topology.workers'] = 1

# Set parallelism based on env_name if necessary
for spec in topology_class.specs:
if isinstance(spec.par, dict):
spec.par = spec.par.get(env_name)

# Check Storm version is the same
local_version = local_storm_version()
project_version = storm_lib_version()
Expand Down

0 comments on commit bafb72b

Please sign in to comment.