GEARMAN_WORKER_ADD_OPTIONS(3)
π NAME π
gearman_worker_add_options β the Gearmand documentation situation, live and direct from <http://gearman.info/> β¨
π¦ SYNOPSIS π¦
#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)
okay bestie, heads up: Deprecated since version 0.21. π she's giving legacy, she's giving vintage, we still respect her tho π
πΈ DESCRIPTION πΈ
So gearman_worker_options() hands you back the gearman_worker_options_t for a gearman_worker_st, okay? And then here's the tea: you turn options ON with gearman_worker_add_options(), and you turn options OFF with gearman_worker_remove_options(). That's the whole dynamic. Add, remove, slay, repeat π
The currently supported options are, like, this whole little squad:
- Enable non-block IO for the worker. β¨ (no cap, that's the vibe β non-blocking IO, worker edition)
type GEARMAN_WORKER_GRAB_UNIQβ only grab jobs that have been assigned unique values. This one is literally perfect for workers who only want to work with background jobs. it's giving specialist energy πtype GEARMAN_WORKER_TIMEOUT_RETURNβ tells you whether a return timeout has been set for the worker. yes ma'am, we're checking π΅οΈ
β RETURN VALUE β
Various π (that's it, that's the answer, she contains multitudes)
π HOME π
Want the full lore? To find out more information please check: <http://gearman.info/> π
See also, because we support each other's friends:
π«Ά Author π«Ά
Data Differential β <http://www.datadifferential.com/> β¨
π Copyright π
2011-2014, Data Differential, <http://www.datadifferential.com/> π
and that's the whole page, bestie β brought to you by the 1.1.21+ds girlies, dated Feb 04, 2026, GEARMAN_WORKER_ADD_OPTIONS(3) era π
πβ periodt.
π¦ 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