{"id":13598605,"url":"https://github.com/owl1n/nest-queue","last_synced_at":"2025-09-15T20:19:58.720Z","repository":{"id":34740142,"uuid":"182797771","full_name":"owl1n/nest-queue","owner":"owl1n","description":"Queue manager for NestJS Framework for Redis (via bull package)","archived":false,"fork":false,"pushed_at":"2023-01-03T20:16:56.000Z","size":2013,"stargazers_count":72,"open_issues_count":15,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-08T05:23:43.007Z","etag":null,"topics":["bull","job","job-scheduler","nest","nestjs","queue","redis","typescript"],"latest_commit_sha":null,"homepage":"https://nestjs.com/","language":"TypeScript","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/owl1n.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":"2019-04-22T13:52:24.000Z","updated_at":"2025-08-02T07:59:46.000Z","dependencies_parsed_at":"2023-01-15T08:53:24.973Z","dependency_job_id":null,"html_url":"https://github.com/owl1n/nest-queue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/owl1n/nest-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owl1n%2Fnest-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owl1n%2Fnest-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owl1n%2Fnest-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owl1n%2Fnest-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owl1n","download_url":"https://codeload.github.com/owl1n/nest-queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owl1n%2Fnest-queue/sbom","scorecard":{"id":715724,"data":{"date":"2025-08-11","repo":{"name":"github.com/owl1n/nest-queue","commit":"4017921ffd9a91f9a1f578a04bd37fac3f4ad3c6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 1/6 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"65 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-cj7v-w2c7-cp7c","Warn: Project is vulnerable to: GHSA-4jpv-8r57-pv7j","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-42xw-2xvc-qx8m","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-56x4-j7p9-fcf9","Warn: Project is vulnerable to: GHSA-v78c-4p63-2j6c","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T09:35:55.693Z","repository_id":34740142,"created_at":"2025-08-22T09:35:55.693Z","updated_at":"2025-08-22T09:35:55.693Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275314200,"owners_count":25442848,"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-09-15T02:00:09.272Z","response_time":75,"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":["bull","job","job-scheduler","nest","nestjs","queue","redis","typescript"],"created_at":"2024-08-01T17:00:54.197Z","updated_at":"2025-09-15T20:19:58.671Z","avatar_url":"https://github.com/owl1n.png","language":"TypeScript","readme":"## Queue manager for NestJS applications\nEasy for use and installation into you'r projects.\n\n`yarn add nest-queue`\n\nMake sure you have installed redis on your host. For local development you can easily install it using [docker](https://hub.docker.com/_/redis/).\n\n*For better working you need to use `nest` package with `6.*.*` ver.*\n#### How to\n\n1) Add new module in your `app.module.ts` file:\n\n    *This module (QueueModule) marked as global.*\n    \n    ```typescript\n    import { Module } from '@nestjs/common';\n    import { QueueModule } from 'nest-queue';\n    \n    @Module({\n        imports: [\n            QueueModule.forRoot({}),\n        ]\n    })\n    export class AppModule {}\n    ```\n    \n    For first parameter `forRoot` function accept options for current module.\n    Settings very simply and have this structure:\n    \n    ```typescript\n    export interface QueueModuleOptions {\n       name?: string,\n       connection?: Bull.QueueOptions,\n    }\n    ```\n    \n    For connection settings you can take help from [Bull documentation](https://optimalbits.github.io/bull/).\n    By default connection setting is:\n    ```\n    connection: {\n        redis: {\n            port: 6379,\n        }\n    }\n    ```\n\n    It means we will work with `localhost:6379` host.\n\n2) Add queue and handle events\n\n    For add job to queue u need inject a Queue instance into your service or controller.\n    For example:\n\n    ```typescript\n    import { Controller, Get } from '@nestjs/common'\n    import { Queue } from 'bull';\n    import { QueueInjection } from 'nest-queue';\n\n    @Controller('test')\n    class TestController {\n       constructor(\n           @QueueInjection() private readonly queue: Queue,\n       ) {}\n    \n       @Get('/')\n       index() {\n           this.queue.add('testEvent', { data: 1, somedata: 2 });\n       }\n    }\n    ```\n\n    In this case you can manipulate with job adding. You can add delayed call and etc.\n    Information about it you can take from [Bull documentation](https://optimalbits.github.io/bull/).\n\n    Anywhere (controllers, services) in your project you can provide event handler for redis calls.\n    `@EventConsumer(eventName)` method decorator allows you to work with it. For example:\n    \n    ```typescript\n    import { Job, DoneCallback } from 'bull';\n    import { EventConsumer } from 'nest-queue';\n    \n    class TestService {\n        @EventConsumer('testEvent')\n        eventHandler(job: Job, done: DoneCallback) {\n           // job.data has passed data from queue adding\n           done(); // required call to stop job\n        }\n    }\n    ```\n    \n    *Context (this) in this function equals to TestService prototype with all resolved dependencies*\n    \n    Function that will provide as event handler receive two arguments `Job` and `DoneCallback`.\n    This function calls as bull-processors and you can take help about from bull [Bull documentation](https://optimalbits.github.io/bull/).\n\n#### Future Goals\n\n* Add tests;\n* Async module adding;\n* Workaround with bull and provide once module for manipulating with jobs;\n* Add console commands lika a `queue list` and etc for receiving information about\nall processing jobs and allow to restart failed jobs (like a Laravel artisan queue manager).\n\n#### Contributors\n\n* [Maxim Markin](https://github.com/owl1n)\n","funding_links":[],"categories":["Components \u0026 Libraries","资源"],"sub_categories":["组件和库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowl1n%2Fnest-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowl1n%2Fnest-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowl1n%2Fnest-queue/lists"}