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
  • #82
Closed
Open
Issue created Jan 25, 2015 by Administrator@rootContributor

Error when launching Bull many times

Created by: lchenay

This happen when using cluster or when launching Bull in different server.

TypeError: Cannot call method 'takeLock' of null
  File "/app/node_modules/bull/lib/queue.js", line 357, in Queue.processStalledJob
      return job.takeLock(_this.token).then(function(lock){
  File "/app/node_modules/bull/node_modules/when/sequence.js", line 34, in <unknown>
                    return when(task.apply(null, args), addResult);
  File "/app/node_modules/bull/node_modules/when/when.js", line 652, in <unknown>
                            return reduceFunc(c, value, i, total);
  File "/app/node_modules/bull/node_modules/when/when.js", line 355, in Object.then
                        ? coerce(onFulfilled(value)) : self;
  File "/app/node_modules/bull/node_modules/when/when.js", line 258, in <unknown>
                        value.then(onFulfilled, onRejected, onProgress)
  File "/app/node_modules/bull/node_modules/when/when.js", line 735, in Object.drainQueue [as _onImmediate]
                task();
  File "timers.js", line 345, in processImmediate [as _immediateCallback]
Assignee
Assign to
Time tracking