{"id":22608968,"url":"https://github.com/bitfinexcom/lokue","last_synced_at":"2025-07-17T09:36:53.911Z","repository":{"id":141634175,"uuid":"89465894","full_name":"bitfinexcom/lokue","owner":"bitfinexcom","description":"LokiJS Job Queue","archived":false,"fork":false,"pushed_at":"2024-08-08T09:51:30.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-11T06:18:05.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.bitfinex.com","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/bitfinexcom.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":"2017-04-26T09:57:29.000Z","updated_at":"2025-03-22T23:32:08.000Z","dependencies_parsed_at":"2023-03-13T10:30:27.163Z","dependency_job_id":null,"html_url":"https://github.com/bitfinexcom/lokue","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/bitfinexcom%2Flokue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Flokue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Flokue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Flokue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitfinexcom","download_url":"https://codeload.github.com/bitfinexcom/lokue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351396,"owners_count":21089272,"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-12-08T15:10:24.166Z","updated_at":"2025-04-11T06:18:11.295Z","avatar_url":"https://github.com/bitfinexcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lokue: LokiJS Job Queue\n\nSimple [LokiJS](http://lokijs.org/) Job Queue management\n\n### Features\n* Persist to file\n* Fast (configurable concurrency)\n* Small library\n\n### Example\n\n```\nconst Lokue = require('lokue')\n\nconst lok = new Lokue({\n  name: 'lokue-test.json',\n  persist: true,\n  concurrency: 10,\n  timeout_save: 50,\n  timeout_save: 100\n})\n\nlok.init((err) =\u003e {\n  let ix = 0\n\n  setInterval(() =\u003e {\n    ix++\n    lok.addJob({ hello: 'world' + ix })\n  }, 100)\n})\n\nlok.on('job', job =\u003e {\n  console.log('processing', job.data)\n  job.done()\n})\n\nsetInterval(() =\u003e {\n  if (lok.isReady()) {\n    lok.requeueStuckJobs()\n    lok.clearCompletedJobs()\n  }\n}, 1000)\n\nprocess.on('SIGINT', () =\u003e {\n  if (lok.isReady()) {\n    lok.stop(() =\u003e {\n      console.log('saved')\n      process.exit()\n    }) \n  } else {\n    process.exit()\n  }\n})\n```\n\n### Contributors\n* Paolo Ardoino \u003cpaolo@bitfinex.com\u003e / \u003cpaolo.ardoino@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Flokue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfinexcom%2Flokue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Flokue/lists"}