GEARMAN_WORKER_OPTIONS(3)

πŸ’– NAME πŸ’–

gearman_worker_options β€” Gearmand Documentation, http://gearman.info/


✨ SYNOPSIS ✨

#include <libgearman/gearman.h>

type gearman_worker_options_t

gearman_worker_options_t gearman_worker_options(const gearman_worker_st <#c.gearman_worker_st> *worker)

void gearman_worker_add_options(gearman_worker_st <#c.gearman_worker_st> *worker, gearman_worker_options_t options)

void gearman_worker_remove_options(gearman_worker_st <#c.gearman_worker_st> *worker, gearman_worker_options_t options)

void gearman_worker_set_options(gearman_worker_st <#c.gearman_worker_st> *worker, gearman_worker_options_t options)
🚨 Deprecated since version 0.21. she's vintage, bestie β€” still here, still documented, but the docs literally said deprecated so I'm just passing the message along, no editorialising πŸ’€

πŸŽ€ DESCRIPTION πŸŽ€

okay so. gearman_worker_options() returns the gearman_worker_options_t for a gearman_worker_st. think of it as your worker's lil settings panel πŸ’…

you flip options on with gearman_worker_add_options(), and you flip options off with gearman_worker_remove_options().

the currently supported options 🌈

  • Enable non-block IO for the worker.</p> β€” fr fr, that is the entire description she came with. no macro name attached, no extra deets, nothing. so I'm handing it to you exactly the way the doc handed it to me. non-block IO for the worker, that's the vibe 🫢
  • type GEARMAN_WORKER_GRAB_UNIQ β€” only grab jobs that have been assigned unique values. this is the one for workers who only wanna work with background jobs. background-jobs-only girlies, this is your moment πŸ‘‘
  • type GEARMAN_WORKER_TIMEOUT_RETURN β€” has a return timeout been set for the worker. that's the question, and that's the whole note. yes she's brief, she's iconic like that ✨

πŸ¦‹ RETURN VALUE πŸ¦‹

Various.

that's it. that's the whole section. the docs simply said "Various" and honestly? respect the confidence. 😭


🏠 HOME 🏠

to find out more information please check: http://gearman.info/

see also πŸ‘€


✍️ Author ✍️

Data Differential β€” http://www.datadifferential.com/

2011-2014, Data Differential, http://www.datadifferential.com/


and that's the page bestie πŸŽ€ this was GEARMAN_WORKER_OPTIONS(3) from the Gearmand manual, version 1.1.21+ds, dated Feb 04, 2026. go add some options to your worker, you got this πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from