Giter Club home page Giter Club logo

express-queue's People

Contributors

alykoshin avatar pmoleri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

express-queue's Issues

app.use conditionally

Hello, tks for solution, i need use this section app.use(queue({ activeLimit: 1 })); conditionally, its possible?

[FeatureRequest] support for queue per parameter value

For my api /do/:something I would like to allow only one request per value of something.

For example:

  • request to /do/something gets through
  • second request to /do/something has to wait for first request to finish
  • request to /do/somethingElse gets through

This is a simple example. The values for something are unspecified values like uuids.

Server stops accepting requests

The module is not working for me very well.

Once the queue is empty, the server does not accept any request and I have to restart the process again.

I'm using "request" module to upload a file, compress using imagemin mozjpeg and then save to disk.

Any idea?

Please note that I'm using a for loop to send multiple request at once.

My queue limit is 2, for testing.

I'm using Windows 8.1, Node 8.9.1

Question - Multiple route level limits.

Hello,

If I set up limits on 2 or more individual routes will they each have their own queue or will they all share one queue?

So if I have:

app.use('/products', queue({ activeLimit: 1 }) );
app.use('/services', queue({ activeLimit: 100 }) );

If I make one request to /products that takes 5secs to complete - will users be blocked from /services during that time?

Manually set queue

I want to be able to manually tell express-queue if there is a member in the queue. That way, based on frontend code, I can tell express whether or not to let the next person in if my frontend code is still running.

No response on exceeding queuedLimit

Module is hanging when more jobs than specified are added to the queue. This is because there is no event listener for 'reject' like there is for 'process'

  self.jobQueue.on('reject', function(job) {
    console.log('Job rejected')
    job.data.res.status(200).end()
  });

It is already fixed in PR #5

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.