Comments (3)
应该是你用法不对,基本的使用场景不可能出错的。方便贴下代码吗? @poype
from bagpipe.
一共有100个任务,Bagpipe的并发数设置为5。后面95个任务在队列排队。但前5个任务执行完成后,后面95个任务都没有执行,一致在阻塞。
看源码队列长度超过限制是:
// 队列长度也超过限制值时
if (this.queue.length < this.queueLength || !this.options.refuse) {
this.queue.push({
method: method,
args: args
});
} else {
var err = new Error('Too much async call in queue');
err.name = 'TooMuchAsyncCallError';
callback(err);
}
是不是设置了options.refuse? @poype
from bagpipe.
应该就是没有正常 callback。
from bagpipe.
Related Issues (15)
- English Documentation HOT 2
- 看了下push方法,如果参数没有callback应该会报错吧。 HOT 1
- 源代码中的78行中的判断没有领悟出来 HOT 2
- 你好,咨询一个超时的问题 HOT 2
- npm上的版本 HOT 1
- 源码的注释错误 HOT 2
- 多层嵌套的场景下如何使用? HOT 3
- promise方法无法使用吧? HOT 2
- 写错了? HOT 1
- 并发数限制问题 HOT 4
- 关于文件描述符和数据库连接池 HOT 3
- 理解 HOT 1
- 如果任务处理失败,怎么结束所有任务 HOT 4
- 在 docker 里构建镜像时经常在处理 bagpipe 时卡住很长时间 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bagpipe.