AirSage / Petrel

Tools for writing, submitting, debugging, and monitoring Storm topologies in pure Python
BSD 3-Clause "New" or "Revised" License
247 stars 70 forks source link

Spouts and bolts initialized before topology is submitted #55

Closed chitrakojha closed 10 years ago

chitrakojha commented 10 years ago

Hi

I'm seeing that the spout and bolt initialization code is executed before the topology is even submitted to Nimbus. This might just be a debug thing for sanity check but is there a way for us to disable it?

Thanks Chitrak

barrywhart commented 10 years ago

Petrel must create instances of the spouts and bolts because the constructors capture various information needed in order to describe the topology to Storm. I have not given any thought to changing this or how that would work, although perhaps the 'script' constructor argument could become a class field instead.