Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bull
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 175
    • Issues 175
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OptimalBits
  • bull
  • Issues
  • #1027
Closed
Open
Issue created Aug 17, 2018 by Administrator@rootContributor

TypeError: scripts.updateDelaySet(...).then(...).catch(...).

Created by: pigaov10

Description

I am trying re-use Redis session following PATTERNS.md. All is working until the "New Queue" code, but when I try call ".process" queue method i exception appears

TypeError: scripts.updateDelaySet(...).then(...).catch(...).return is not a function services_monitor.1.wfdxm3rsmh11@l01752papp0 | at delayUpdate (/var/www/html/node/node_modules/bull/lib/queue.js:867:16)

Minimal, Working Test code to reproduce the issue.

The code: `var Queue = require('bull');

var Redis = require('ioredis') var client = new Redis(6379, 'redis'); var subscriber = new Redis(6379, 'redis');

var opts = { createClient: function (type) { switch (type) { case 'client': return client; case 'subscriber': return subscriber; default: return new Redis(); } } }`

var queueMonitor = new Queue('monitor', opts); //-> returns the Queue object
queueMonitor.process(function(job, done){ // the error appears here console.log("Received message", job.data.msg); done(); });

Bull version

bull 3.4.7 ioredis 4.0.0

Additional information

Assignee
Assign to
Time tracking