Example #1
0
def main():

    setEnv()
    getConfig()

    redisCon = Redis(host=conf.REDIS_HOST,
                     port=conf.REDIS_PORT,
                     password=conf.REDIS_PASSWD)

    with Connection(connection=redisCon):
        qs = 'default'
        w = Worker(qs)
        w.work()
        print 'start worker successfully....'
Example #2
0
def main():

    setEnv()
    getConfig()
    masterstart()
Example #3
0
def main():

    setEnv()
    getConfig()
    masterstart()