Skip to content

Commit

Permalink
Make prepare_topology get called in jar_for_deploy instead of in subm…
Browse files Browse the repository at this point in the history
…it_topology
  • Loading branch information
dan-blanchard committed Jun 16, 2015
1 parent 7978ca7 commit 343f9c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions streamparse/cli/jar.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
from invoke import run

from .common import add_simple_jar
from ..util import prepare_topology


def jar_for_deploy(simple_jar=False):
""" Build a jar to use for deploying the topology. """
# Create _resources folder which will contain Python code in JAR
prepare_topology()
# Use Leiningen to clean up and build JAR
jar_type = "JAR" if simple_jar else "Uber-JAR"
print("Cleaning from prior builds...")
sys.stdout.flush()
Expand Down
2 changes: 0 additions & 2 deletions streamparse/cli/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ def submit_topology(name=None, env_name="prod", workers=2, ackers=2,
options=None, force=False, debug=False, wait=None,
simple_jar=False):
"""Submit a topology to a remote Storm cluster."""
prepare_topology()

config = get_config()
name, topology_file = get_topology_definition(name)
env_name, env_config = get_env_config(env_name)
Expand Down

0 comments on commit 343f9c9

Please sign in to comment.