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
  • Merge requests
  • !81

Add priority queue fonctionality

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/lchenay/feature/priority into master Jan 25, 2015
  • Overview 3
  • Commits 7
  • Pipelines 0
  • Changes 4

Created by: lchenay

Adding priority queue functionality to Bull.

Priority have been design to process job of higher priority more often than lower priority. It will not process all critical before all hight before all normal... This design choice allow us to save many check and Redis request. But it work like a charm and job with hight priority will be processing significantly faster than other.

It's works like normal queue, except that the add function allow an opts.priority options with one of following value: [low, normal, medium, hight, critical].

Due to current design of Redis connection, this priority queue will increase Redis connection by 5.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/lchenay/feature/priority