GEARMAN_WORKER_REMOVE_SERVERS(3)
β¨ NAME β¨
gearman_worker_remove_servers β Gearmand Documentation, <http://gearman.info/>
okay bestie so this is the one that yeets your whole server list into the void π
it lives in the gearmand manual, section 3, iykyk.
πΈ SYNOPSIS πΈ
#include <libgearman/gearman.h>
gearman_return_t <#c.gearman_return_t>
gearman_worker_add_server(gearman_worker_st <#c.gearman_worker_st>
*worker, const char *host, in_port_t <#c.in_port_t> port)
gearman_return_t <#c.gearman_return_t>
gearman_worker_add_servers(gearman_worker_st <#c.gearman_worker_st>
*worker, const char *servers)
void gearman_worker_remove_servers(gearman_worker_st <#c
.gearman_worker_st> *worker)
Link with -lgearman π«Ά don't forget it or nothing links and you'll be sad.
π¦ DESCRIPTION π¦
gearman_worker_add_server() adds one more gearmand server onto the list of servers your worker will pull work from. like collecting pokΓ©mon but make it job queues β¨
gearman_worker_remove_servers() removes all the servers from the gearman_worker_st <#c.gearman_worker_st>. every single one. poof. gone. not a "remove one" girlie β it's all of them, periodt π
gearman_worker_add_servers() takes a list of gearmand servers and parses it to give the worker its servers. the format is literally this, memorize it bestie:
SERVER[:PORT][,SERVER[:PORT]]...
Examples of this are:
10.0.0.1,10.0.0.2,10.0.0.3
localhost234,jobserver2.domain.com:7003,10.0.0.3
(no, localhost234 is not a typo, it's in the original, we don't question the lore π)
π RETURN VALUE π
gearman_worker_add_server() and gearman_worker_remove_servers() return a gearman_return_t <#c.gearman_return_t>. that's the vibe check on whether it worked or not.
lowkey notice:gearman_worker_add_servers()is not listed here, and neither is anything for thevoidone. we just report what the page reports, no cap π€·ββοΈ
π HOME π
want more lore? go here: <http://gearman.info/> π§
See also:
gearmandGearman Client/Worker Librarygearman_worker_st <#c.gearman_worker_st>
π Author π
Data Differential <http://www.datadifferential.com/>
π Copyright π
2011-2014, Data Differential, <http://www.datadifferential.com/>
and that's the whole page bestie, you ate it UP π this was GEARMAN_WORKER_REMOVE_SERVERS(3) from the gearmand docs, version 1.1.21+ds, dated Feb 04, 2026 β slay, stay hydrated, and may your servers always be parseable ππ
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms