Registry / devops / qjobs
library1.2.0jsnpmunverified

A simple and efficient queue job manager for Node.js, version 1.2.0. It provides concurrency limiting, dynamic queue (jobs can be added while running), optional delay, pause/unpause support, and event emitter-based lifecycle events (start, end, jobStart, jobEnd, pause, unPause). Unlike more complex job queues (e.g., Bull, Kue), qjobs is lightweight, in-memory, and focuses on basic concurrency control without persistence or external dependencies.

npm install qjobs
INSTALL
IMPORT
SIG · QJOBS
Q
qjobs
devopsjavascriptv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ const qjobs = require('qjobs');
✗ const qjobs = require('qjobs').default;
CommonJS-only package. No ES module or default export.
qjobs class
✓ const qjobs = require('qjobs'); const q = new qjobs({maxConcurrency:10});
✗ import qjobs from 'qjobs';
Package does not support ES modules; only CommonJS require works.
createQueue (nonexistent)
✓ const q = new (require('qjobs'))({maxConcurrency:5});
✗ const q = require('qjobs').createQueue();
qjobs does not have a createQueue method. Instantiate with new.

Shows basic usage: creating a queue with concurrency limit, adding jobs, and running them.

const qjobs = require('qjobs'); const myjob = function(args, next) { setTimeout(function() { console.log('Job done:', args); next(); }, 1000); }; const q = new qjobs({ maxConcurrency: 10 }); for (let i = 0; i < 5; i++) { q.add(myjob, [i, 'test ' + i]); } q.on('end', function() { console.log('All jobs completed'); }); q.run();
Debug
Known issues
gotchaqjobs is CommonJS-only; does not support ES modules. Using import will fail.
fix
Use require('qjobs') instead of import.
affects: >=1.0
gotchaThe package has no TypeScript type definitions.
fix
Install @types/qjobs or declare your own module types.
affects: >=1.0
deprecatedqjobs has been largely superseded by more modern queue libraries like Bull, Bee-Queue, or p-queue.
fix
Consider migrating to a maintained alternative for production use.
affects: >=1.0
gotchaConcurrency limiter does not account for asynchronous errors in job functions; uncaught exceptions will crash the process.
fix
Wrap job body in try-catch and call next(err) or use a promise-based wrapper.
affects: >=1.0
Errors
Common errors & fixes
TypeError: qjobs is not a constructor
Using import statement or incorrect require pattern.
fix
Use const qjobs = require('qjobs'); then new qjobs({...});
Cannot find module 'qjobs'
Package not installed or npm registry issues.
fix
Run npm install qjobs in your project directory.
ReferenceError: next is not defined
Job function expects a 'next' callback but not provided or called incorrectly.
fix
Define your job function with two parameters: (args, next) and call next() when done.
Upgrade
Version history
1.2.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
packageqjobs ↗
qjobs — npm install qjobs · libregistry