Пример #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....'
Пример #2
0
def main():

    setEnv()
    getConfig()
    masterstart()
Пример #3
0
def main():

    setEnv()
    getConfig()
    masterstart()