Skip to content

Instantly share code, notes, and snippets.

@caioiglesias
Last active August 29, 2015 14:04
Show Gist options
  • Save caioiglesias/5dd2680e13f4e9044e58 to your computer and use it in GitHub Desktop.
Save caioiglesias/5dd2680e13f4e9044e58 to your computer and use it in GitHub Desktop.
Pipeline Simple
class GrandGrandSon(base_handler.PipelineBase):
def run(self):
return 'big family'
class GrandSon(base_handler.PipelineBase):
def run(self):
yield GrandGrandSon()
class Child(base_handler.PipelineBase):
def run(self):
yield GrandSon()
class Father(base_handler.PipelineBase):
def run(self):
yield Child()
class MainHandler(webapp2.RequestHandler):
def get(self):
incoming = Father()
incoming.start()
path = incoming.base_path + "/status?root=" + incoming.pipeline_id
self.redirect(path)
app = webapp2.WSGIApplication([
('/', MainHandler)
], debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment