使用FTP工具FlashFXP报错:数据 Socket 错误: 连接已超时,如下图:
解决办法步骤: Continue reading
nodejs模块,redis作业/任务队列模块,bee-queue
Git URL:
0 |
git://www.github.com/bee-queue/bee-queue.git |
Git Clone代码到本地:
0 |
git clone http://www.github.com/bee-queue/bee-queue |
Subversion代码到本地:
0 1 2 3 |
$ svn co --depth empty http://www.github.com/bee-queue/bee-queue Checked out revision 1. $ cd repo $ svn up trunk |
一个简单、快速、健壮的Node.js 作业/任务(job/task) 队列。由Redis支持。
0 1 2 3 4 5 6 7 8 9 10 |
const Queue=require('bee-queue'); const queue=newQueue('example'); const job=queue.createJob({x:2, y:3})job.save(); job.on('succeeded', (result) => { console.log(`Received result for job ${job.id}: ${result}`); }); // Process jobs from as many servers or processes as you like queue.process(function (job, done) { console.log(`Processing job ${job.id}`); return done(null, job.data.x+job.data.y); }); |