We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @nesquena, I developed a code that inserts tube's job into an array.
This is my code that inserts a job to an array.
beanstalk = Beaneater.new(Beaneater.configuration.beanstalkd_url) tube = beanstalk.tubes["my-tube"] array = Array.new loop do @array << tube.reserve break if @array.size == 100 end
Is there a way to get the number of ready jobs in a tube?
I was thinking to implement like this.
loop do @array << tube.reserve break if @array.size == tube.size end
Thanks, Michael
The text was updated successfully, but these errors were encountered:
hi @nesquena, I will close this issue because I got the way on how to retrieve the number of ready jobs in a tube.
I used this code to retrieve the ready jobs.
tube.stats.current_jobs_ready.to_i
I modified my code like this.
loop do @array << tube.reserve break if @array.size == tube.stats.current_jobs_ready.to_i end
Sorry, something went wrong.
No branches or pull requests
Hi @nesquena, I developed a code that inserts tube's job into an array.
This is my code that inserts a job to an array.
Is there a way to get the number of ready jobs in a tube?
I was thinking to implement like this.
Thanks,
Michael
The text was updated successfully, but these errors were encountered: