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
  • #1852
Closed
Open
Issue created Sep 10, 2020 by Administrator@rootContributor

TypeError: queue.client.moveToActive is not a function using manual pattern

Created by: tballantyne

Description

Getting a TypeError: queue.client.moveToActive is not a function when trying to consume a job off the queue using the manual pattern - queue.getNextJob()

TypeError: queue.client.moveToActive is not a function
at Object.moveToActive (/.../node_modules/bull/lib/scripts.js:89:25)
at Queue.moveToActive (/.../node_modules/bull/lib/queue.js:1142:18)
at /.../node_modules/bull/lib/queue.js:1126:25
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async getJob (/.../server/manualConsumer.js:7:15)

Minimal, Working Test code to reproduce the issue.

const Queue = require('bull');

const queue = new Queue('test_queue');

async function getJob(){
	try {
		const job = await queue.getNextJob();
		console.log(job.data);
	} catch(err) { 
		console.log(err)
	}
}
getJob();

Bull version

3.18.0

Assignee
Assign to
Time tracking