I read through all of your documentation on share connections. Each suggested way causes the limiter to never execute a job once it hits any type of limit.
Here is how I am creating the connection currently:
function createBottleneckConnection({
redisUrl,
}) {
const limiter = new Bottleneck({
id: 'setup',
datastore: 'ioredis',
clientOptions: redisUrl
})
const connection = limiter.connection
if (!connection) {
throw new Error('no connection')
}
return connection
}
I have also tried creating a Bottleneck.IORedisConnection directly using both a client and clientOptions. All of them cause the limiters to fail in the same way.
I am using version 2.19.5.
I read through all of your documentation on share connections. Each suggested way causes the limiter to never execute a job once it hits any type of limit.
Here is how I am creating the connection currently:
Here is how I am using the connection:
If I just change it to:
It works fine.
I have also tried creating a
Bottleneck.IORedisConnection
directly using both a client and clientOptions. All of them cause the limiters to fail in the same way.