Git Product home page Git Product logo

Comments (3)

logicalparadox avatar logicalparadox commented on July 18, 2024

It seems like a race condition is putting the queue back into a pause state immediately after it has been resumed. I would start by checking to see if the _queueIterator is even being invoked after .resume()

At a lower level, the queue might decide to not process the next item if any of these conditions pass: https://github.com/qualiancy/breeze-queue/blob/master/lib/queue.js#L200-L203

I'll see what else I can find....

from apnagent.

logicalparadox avatar logicalparadox commented on July 18, 2024

Theory: when the last item is sent I don't see a "cache push" notification for id 434787 which would occur here. Coincidentally, that is when next would be called, thus reducing the worker count for the queue. Then, once resume is called it the queue thinks all the workers are still busy so it never invokes the queue iterator for the next item in the queue.

from apnagent.

vseryakov avatar vseryakov commented on July 18, 2024

Hi, i am seeing similar behaviour, i send lots of events one by one but sometimes it works but sometimes only one or two got delivered and the rest just gone. Is there a simple way to push the queue, like forcing to call process every once in a while with a timeout?

from apnagent.

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.