Exit beanstalkd

I want to control which jobs go through the beanstalkd queue. Is there any way to do this via the command line. When running beanstalkd, no output is displayed on the command line. Essentially, I'm looking for a debugging option or a detailed option.

+4
source share
1 answer

beanstalkd does not come with any management tools as far as I know. But if you install one of the python / ruby ​​/ perl libraries, you can write something to fairly easily convey server status.

Here is an example using python and the beanstalkc client package:

#!/usr/bin/python import beanstalkc b = beanstalkc.Connection(host='localhost', port=11300) for tube in b.tubes(): print "Tube: %s" % tube stats = b.stats_tube(tube) for k, v in stats.items(): print " %s: %s" % (k, v) 
+5
source

Source: https://habr.com/ru/post/1343138/


All Articles