{"id":13411312,"url":"https://github.com/jkyberneees/bull-queue-manager","last_synced_at":"2025-08-11T02:04:41.484Z","repository":{"id":57191371,"uuid":"87787492","full_name":"jkyberneees/bull-queue-manager","owner":"jkyberneees","description":"Minimalist queue manager based on bull.","archived":false,"fork":false,"pushed_at":"2017-04-18T11:48:12.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T02:48:39.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkyberneees.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-10T08:41:55.000Z","updated_at":"2021-06-16T18:48:07.000Z","dependencies_parsed_at":"2022-09-16T05:01:46.307Z","dependency_job_id":null,"html_url":"https://github.com/jkyberneees/bull-queue-manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jkyberneees/bull-queue-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkyberneees%2Fbull-queue-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkyberneees%2Fbull-queue-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkyberneees%2Fbull-queue-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkyberneees%2Fbull-queue-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkyberneees","download_url":"https://codeload.github.com/jkyberneees/bull-queue-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkyberneees%2Fbull-queue-manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269683182,"owners_count":24458628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:12.858Z","updated_at":"2025-08-11T02:04:41.424Z","avatar_url":"https://github.com/jkyberneees.png","language":"JavaScript","funding_links":[],"categories":["Web Development"],"sub_categories":["Javascript"],"readme":"# bull-queue-manager\nMinimalist queue manager based on [bull](https://www.npmjs.com/package/bull): the awesome Node.js job and message queue.\n\nThis module provides a high level API that allow you to re-use shared configurations and instances, as well as [reduce the number of redis connections](https://github.com/OptimalBits/bull#reusing-redis-connections) to the minimum by default.\nAlso introduce a convenient \"response\" promise to easily process jobs result:\n```js\nlet result = await q1.add({\n    name: 'job1'\n}).response;\n```\n\n## Usage ##\nCreate and initialize Queue Manager:\n```js\nconst QueueManager = require('bull-queue-manager').QueueManager;\nconst qm = new QueueManager(\n    6379,           //redis port\n    'localhost',    //redis host\n    0,              //redis db\n    {}              //redis options (described in https://github.com/luin/ioredis/blob/master/API.md)\n);\nqm.init();\n```\n```js\n// also redis connection URL can be used\nconst qm = new QueueManager('redis://localhost:6379/0', {\n    // options\n});\n```\n### Create some queues on demand: ###\n```js\nconst q1 = qm.queue('q1');\nconst q2 = qm.queue('q2');\nconst q3 = qm.queue('q3');\nconst q4 = qm.queue('q4');\n\n// optionally override default config\nconst q5 = qm.queue('q5', 6379, 'redis.instance.com', 1, {});\nconst q6 = qm.queue('redis://localhost:6379/3', {});\n// ...\n```\n\n### Register job processors: ###\n\n```js\nq1.process(async (job) =\u003e {\n    // ... do something with job.data\n    // ...\n\n    // finally respond something\n    return {\n        success: true\n    };\n});\n```\n\n### Add jobs to queues: ###\n```js\nlet promise = q1.add({\n    name: 'job1'\n});\nlet job = await promise; // https://github.com/OptimalBits/bull#job\n```\n\n### Add jobs to queues, optionally process result from processing: ###\n```js\nlet promise = q1.add({\n    name: 'job1'\n});\n// you can get the response promise here\nlet result = await promise.response;\n// result == { success: true }  \n```\n\n### Shutdown the QueueManager instance (close all queues): ###\n```js\nqm.shutdown();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkyberneees%2Fbull-queue-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkyberneees%2Fbull-queue-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkyberneees%2Fbull-queue-manager/lists"}