async def arq_redis_msgpack(loop): redis_ = ArqRedis( host='localhost', port=6379, encoding='utf-8', job_serializer=msgpack.packb, job_deserializer=functools.partial(msgpack.unpackb, raw=False), ) await redis_.flushall() yield redis_ await redis_.close(close_connection_pool=True)
async def arq_redis(loop): redis_ = ArqRedis( host='localhost', port=6379, encoding='utf-8', ) await redis_.flushall() yield redis_ await redis_.close(close_connection_pool=True)