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....'
def main(): setEnv() getConfig() masterstart()