Exemple #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....'
Exemple #2
0
def main():

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

    setEnv()
    getConfig()
    masterstart()