Coder Social home page Coder Social logo

排队的任务没有执行 about bagpipe HOT 3 CLOSED

poype avatar poype commented on May 20, 2024
排队的任务没有执行

from bagpipe.

Comments (3)

lilifan avatar lilifan commented on May 20, 2024

应该是你用法不对,基本的使用场景不可能出错的。方便贴下代码吗? @poype

from bagpipe.

tongzhenyu0312 avatar tongzhenyu0312 commented on May 20, 2024

一共有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.

JacksonTian avatar JacksonTian commented on May 20, 2024

应该就是没有正常 callback。

from bagpipe.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.