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/> ✨

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