You will want to run, and parse the output from the stats-tube [tubename] command. It returns the number of jobs in the tube of each type (urgent, ready, reserved, delayed, and others), and other tube-specific information.
How do I determine if a beanstalkd tube is empty?
-
04-07-2022 - |
質問
By "empty" I mean there's no job ready to be reserved or being reserved.
I've read the document on github and find that stats
is almost what I want except that it gives information about the whole system, not a specific tube.
解決
所属していません StackOverflow