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

API doesnt allow to know when redis connection is ready

Created by: pmvrmc

When creating a new queue, there is no ready event for the redis connection, so we don't know if it is ready or not. Digging through the code it looked to me that bull is only emitting redis 'error' event and not 'ready', 'reconnecting', etc.

Also the queue.isReady() will always resolve fine even if there is no connection ready:

const queue = new Queue('queue');
queue.isReady().then(() => {
  console.log('this is always print even if redis is down');
});
Assignee
Assign to
Time tracking