Giter VIP home page Giter VIP logo

Comments (7)

pentium10 avatar pentium10 commented on August 22, 2024

yep that needs to be updated
I am travelling for 2 weeks, will see when I have time to do a pull request

from beanstalk_console.

mmenozzi avatar mmenozzi commented on August 22, 2024

If you want I can do it but the problem is: how?
How can we know what's the maximum ID to search for? The stats-tube command doesn't have this information. Any idea?

from beanstalk_console.

pentium10 avatar pentium10 commented on August 22, 2024

as far I know there is no way to obtain the last job id, as the queue doesn't expose it.
we need to loop all jobs until we reach one limit

  • eg the maximum number of jobs to return eg: 20 results
  • or we have fetched total number of jobs that exists on the tube itself

this last one could also mean that if some other tube has 1 million message, they will be peaked.
we could also introduce another two factors

  • total system jobs to check eg: 10 000
  • or total number of seconds allowed to fetch for jobs eg: 30 seconds

what do you think?

from beanstalk_console.

mmenozzi avatar mmenozzi commented on August 22, 2024

Yes I agree.
There is no elegant way to it because the beanstalkd tube is not "inspectable" by design. I'll try to provide a PR for this.

from beanstalk_console.

mmenozzi avatar mmenozzi commented on August 22, 2024

@pentium10 look at the #162, what do you think?

from beanstalk_console.

pentium10 avatar pentium10 commented on August 22, 2024

from beanstalk_console.

mmenozzi avatar mmenozzi commented on August 22, 2024

It was already limited when I started to work on this. There was two kind of limits:

  • It stops when it find 25 jobs
  • Or it stops after 25 seconds

So if you have to many jobs it lasts for maximum 25 seconds.

from beanstalk_console.

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.