{"id":18656802,"url":"https://github.com/optimalbits/resultqueue","last_synced_at":"2025-06-17T17:32:48.724Z","repository":{"id":66274859,"uuid":"121737393","full_name":"OptimalBits/resultqueue","owner":"OptimalBits","description":"Result queue on top of bull","archived":false,"fork":false,"pushed_at":"2018-02-20T14:59:00.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T16:55:30.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OptimalBits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-16T10:12:15.000Z","updated_at":"2020-08-11T08:08:51.000Z","dependencies_parsed_at":"2023-04-13T04:24:05.809Z","dependency_job_id":null,"html_url":"https://github.com/OptimalBits/resultqueue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OptimalBits%2Fresultqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OptimalBits%2Fresultqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OptimalBits%2Fresultqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OptimalBits%2Fresultqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OptimalBits","download_url":"https://codeload.github.com/OptimalBits/resultqueue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248458452,"owners_count":21107080,"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-07T07:25:24.348Z","updated_at":"2025-04-11T18:31:20.994Z","avatar_url":"https://github.com/OptimalBits.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resultqueue\nResult queue on top of bull\n\n```js\nconst {\n  Client,\n  Server\n} = require('../');\n\nconst redis = {\n  host: 'localhost',\n  port: '6379'\n};\n\nconst server = new Server('test-queue', redis);\nconst client = new Client('test-queue', 'id', redis);\n\nserver.processJob(data =\u003e {\n  console.log('Sever processing job', data);\n  \n  return {val: data.val + 1};\n});\n\nclient.processResult(result =\u003e {\n  console.log('Client got result', result);\n\n  // free resources\n  client.destroy();\n  server.destroy();\n});\n\nconst input = {val: 1};\nconsole.log('Adding job', input);\nclient.addJob(input);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimalbits%2Fresultqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptimalbits%2Fresultqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimalbits%2Fresultqueue/lists"}