Last active
August 29, 2015 14:04
-
-
Save caioiglesias/5dd2680e13f4e9044e58 to your computer and use it in GitHub Desktop.
Pipeline Simple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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