Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)

        def make_json(command, **props):
    return json.dumps(make_message(command, **props))
        


src/c/i/circus-0.10.0/circus/sighandler.py   circus(Download)
 
from circus import logger
from circus.client import make_json
 
 
    def handle_int(self):
        self.controller.dispatch((None, make_json("quit")))
 
    def handle_term(self):
        self.controller.dispatch((None, make_json("quit")))
 
    def handle_quit(self):
        self.controller.dispatch((None, make_json("quit")))
    def handle_hup(self):
        self.controller.dispatch((None, make_json("reload", graceful=True)))
 

src/c/i/circus-HEAD/circus/sighandler.py   circus(Download)
 
from circus import logger
from circus.client import make_json
 
 
    def handle_int(self):
        self.controller.dispatch((None, make_json("quit")))
 
    def handle_term(self):
        self.controller.dispatch((None, make_json("quit")))
 
    def handle_quit(self):
        self.controller.dispatch((None, make_json("quit")))
    def handle_hup(self):
        self.controller.dispatch((None, make_json("reload", graceful=True)))