Coder Social home page Coder Social logo

Comments (5)

WizTeam avatar WizTeam commented on July 22, 2024

同样遇到这个问题。

楼上提供了一个解决办法,但是极端情况下仍然会有问题,例如,我在程序一开始就添加了10000个上传任务(假如此时cos还没有开始上传),然后再添加的时候,就会导致仍然没有上传的任务丢失。

另外,建议腾讯开发人员不要自己实现并发任务,可以直接使用第三方库来实现。https://github.com/caolan/async

from cos-nodejs-sdk-v5.

beordle avatar beordle commented on July 22, 2024

已经联系cos的同学看了

from cos-nodejs-sdk-v5.

WizTeam avatar WizTeam commented on July 22, 2024

这是严重bug,直接会造成生产上面服务直接不可用,尽快修复吧

from cos-nodejs-sdk-v5.

carsonxu avatar carsonxu commented on July 22, 2024

@WizTeam 已修复问题,试试 npm 更新最新版本 2.4.11
async 不方便处理动态的队列,所以这里是自己实现的并发。

from cos-nodejs-sdk-v5.

carsonxu avatar carsonxu commented on July 22, 2024

这里队列如果 10000 个不够,可以使用参数 UploadQueueSize 控制

from cos-nodejs-sdk-v5.

Related Issues (20)

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.