No commit activity in last 3 years
No release in over 3 years
A Ruby wrapper around the Gearman admin protocol
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

GearmanAdminClient

Connect and issue administrative commands to a Gearman server. GearmanAdminClient's API follows the Administrative Protocol closely. You can read more about the Adminstrative Protocol under the "Administrative Protocol" section of the Gearman protocol specification.

Usage

client = GearmanAdminClient.new('localhost:4730')

# list registered workers
client.workers

# list registered functions
client.status

# set the maximum queue size for a function
client.max_queue_size('function_name', 1_000)

# get the version of the server
client.server_version

# shutdown the server gracefully
client.shutdown graceful: true

# shutdown the server forcefully
client.shutdown