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
  • #781
Closed
Open
Issue created Nov 08, 2017 by Administrator@rootContributor

queue.process(name, processor) not working when using a separate process

Created by: sylvainlap

Hello,

In the reference guide (https://github.com/OptimalBits/bull/blob/master/REFERENCE.md#queueprocess), it is written that you can define a processing function thanks to process(name, processor).

However, using this way, when the processor is a separate process (ie a string) thows a TypeError: Cannot read property 'bind' of undefined.

According to https://github.com/OptimalBits/bull/blob/master/lib/queue.js#L522, if you use this way to define your processor as a separate process, this.setHandler(name, handler); leads to an handler to undefined.

Assignee
Assign to
Time tracking