{"id":21558096,"url":"https://github.com/koopjs/koop-queue","last_synced_at":"2025-03-18T03:28:03.044Z","repository":{"id":57289531,"uuid":"48821750","full_name":"koopjs/koop-queue","owner":"koopjs","description":"A queuing system for Koop","archived":false,"fork":false,"pushed_at":"2022-12-09T21:52:46.000Z","size":16,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-24T23:08:05.182Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koopjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-12-30T22:19:24.000Z","updated_at":"2016-11-29T17:04:55.000Z","dependencies_parsed_at":"2023-01-25T21:46:40.365Z","dependency_job_id":null,"html_url":"https://github.com/koopjs/koop-queue","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fkoop-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koopjs","download_url":"https://codeload.github.com/koopjs/koop-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244149175,"owners_count":20406324,"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","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-11-24T08:13:58.318Z","updated_at":"2025-03-18T03:28:03.025Z","avatar_url":"https://github.com/koopjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koop-Queue\n*A queuing system for Koop*\n\n[![npm][npm-img]][npm-url]\n[![travis][travis-image]][travis-url]\n\n## Installation\n### As a package\n`npm install koop-queue`\n\n### From source\n```bash\ngit clone https://github.com/koopjs/koop-queue.git\ncd koop-queue\nnpm install\nnpm install -g babel-cli\nnpm run compile\n```\n\n## Usage\n### As a Koop Plugin\n```javascript\nconst Koop = require('koop')\nconst config = require('config')\nconst koop = Koop(config)\nconst Queue = require('koop-queue')\n\n// koop will instantiate an instance of Queue\nkoop.register(Queue)\n```\n\n### Standalone\n```javascript\nconst Queue = require('koop-queue')\n\nconst connection = {\n  host: '127.0.0.1',\n  port: 6379,\n  prefix: 'koop-jobs'\n}\n\nconst queue = new Queue()\n\nconst options = {\n  table: '1ef:0',\n  format: 'csv',\n  key: 'J2E4QvGLBHgX',\n  name: 'trees',\n  path: './output'\n}\n\n// returns an event emitter\nconst job = queue.enqueue('xport', options)\n\njob\n.on('error', e =\u003e console.log(e))\n.on('start', () =\u003e console.log('Job started'))\n.on('progress', progress =\u003e console.log(progress))\n.on('finish', () =\u003e console.log('Job finished'))\n```\n\n## Configuration\nIn config/:env.json\n\n*Note: all connection configs are optional*\n\n```json\n{\n  \"queue\": {\n    \"connection\": {\n      \"host\": \"127.0.0.1\",\n      \"port\": 6379,\n      \"namespace\": \"koop-jobs\",\n      \"database\": 0\n    }\n  }\n}\n```\n[npm-img]: https://img.shields.io/npm/v/koop-queue.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/koop-queue\n[travis-image]: https://img.shields.io/travis/koopjs/koop-queue.svg?style=flat-square\n[travis-url]: https://travis-ci.org/koopjs/koop-queue\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoopjs%2Fkoop-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fkoop-queue/lists"}