GEARMAN_WORKER_SET_OPTIONS(3)
π GEARMAN_WORKER_SET_OPTIONS π
okay bestie, so this is a page from the gearmand manual β section 3, the library-function corner of the world. Sit down, sip ur lil drink, we're talking about toggling options on a worker β¨
πΈ NAME πΈ
gearman_worker_set_options β Gearmand Documentation, http://gearman.info/
like. that's the whole name section. she's brief. she's iconic. π
π SYNOPSIS π
the vibes first, the code second:
#include <libgearman/gearman.h>
type gearman_worker_options_t
gearman_worker_options_t gearman_worker_options(const gearman_worker_st *worker)
void gearman_worker_add_options(gearman_worker_st *worker, gearman_worker_options_t options)
void gearman_worker_remove_options(gearman_worker_st *worker, gearman_worker_options_t options)
void gearman_worker_set_options(gearman_worker_st *worker, gearman_worker_options_t options)
β οΈ Deprecated since version 0.21. yes bestie she's old money. still documented, still hanging around, but the era has moved on. ngl if you're writing fresh code you already know.
β¨ DESCRIPTION β¨
so gearman_worker_options() hands you back the gearman_worker_options_t that belongs to a gearman_worker_st. that's the lil bag of flags, the worker's whole personality basically π«Ά
and how do you change that personality?? two ways:
gearman_worker_add_options()β turns options ON (enabling).gearman_worker_remove_options()β turns options OFF (disabling).
the currently supported options are, in order:
- Enable non-block IO for the worker. β fr fr, this is the non-blocking IO switch. that's it, that's the description. (yes the original gives no macro name here, so i'm not making one up. periodt.)
type GEARMAN_WORKER_GRAB_UNIQβ only grabs jobs that have been assigned unique values. lowkey perfect for workers who only wanna work with background jobs πtype GEARMAN_WORKER_TIMEOUT_RETURNβ has a return timeout been set for the worker. it's giving "are we timing out or are we returning" energy π
π¦ RETURN VALUE π¦
Various
that's it. that's the return value section. literally one word. the manual is being mysterious on purpose and honestly?? respect. π
π HOME π
wanna find out more?? go touch grass at:
see also (the besties in the friend group):
π¦ Author π¦
Data Differential β http://www.datadifferential.com/
β Copyright β
2011-2014, Data Differential, http://www.datadifferential.com/
π ok that's the whole page bestie!! you now know everything this manual knows, no cap. go enable some options responsibly. mwah π
1.1.21+ds Β· Feb 04, 2026 Β· GEARMAN_WORKER_SET_OPTIONS(3) πβ¨
π¦ 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