#758·bull

Error: Sending custom commands in pipeline is not supported in Cluster mode when use Cluster Mode

Author: zetfloCreated Oct 25, 2017Updated Jun 3, 2026
LabelsenhancementPRIO 1

When i use bull in redis cluster mode.

Configuration options

javascript
const opts = {
    createClient: function(type){
       return new redis.Cluster([
            ...
        ]);
    },
    prefix: '{}'
};

Create job it's worked but when i process job with queue.process, I encounter the following error

Error: Sending custom commands in pipeline is not supported in Cluster mode.
    at Pipeline.exec (\node_modules\ioredis\lib\pipeline.js:249:19)
    at Pipeline.pipeline.exec (\node_modules\ioredis\lib\transaction.js:34:26)
    at \node_modules\bull\lib\job.js:210:18

Apparently the pipelines are not compatible with cluster mode of redis.

Can you confirm this problem? How to use bull with a cluster redis without encountering this problem?