Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/folkloreinc/node-queueleuleu
A queue system to process jobs asynchronously
https://github.com/folkloreinc/node-queueleuleu
Last synced: about 2 months ago
JSON representation
A queue system to process jobs asynchronously
- Host: GitHub
- URL: https://github.com/folkloreinc/node-queueleuleu
- Owner: folkloreinc
- License: other
- Created: 2012-12-05T01:39:03.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-10T05:23:01.000Z (about 12 years ago)
- Last Synced: 2024-10-29T08:31:42.782Z (2 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Queueleuleu
===========A queue system to process jobs asynchronously with node.js
Installation
---------------
npm install queueleuleuUsage
---------------var queueleuleu = require('queueleuleu');
var queue = queueleuleu.createQueue({
'debug' : true,
'autostart' : true,'processor' : function(job,done) {
console.log('processing job #'+job.id);
console.log('job data',job.data);setTimeout(function() {
done();
console.log('processed job #'+job.id);
},Math.round(Math.random()*1000));}
});
queue.on('start', function() {
console.log('Queue start');
});queue.on('end', function() {
console.log('Queue end');
});for(var i = 0; i < 10; i++) {
queue.add({
'index' : i
});
}