gearman_worker_options3
Gearmand documentation, https://gearman.org/gearmand/
Usage
#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.
Overview
gearman_worker_options() returns the gearman_worker_options_t for gearman_worker_st. You enable options via gearman_worker_add_options() and disable options via gearman_worker_remove_options().
The currently supported options are:
Enable non-block IO for the worker.
- type GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL
Return GEARMAN_IO_WAIT from gearman_wait() when a signal interrupts the wait.
- type GEARMAN_WORKER_GRAB_UNIQ
Only grab jobs that have been assigned unique values. This is useful for workers who only want to worker with background jobs.
- type GEARMAN_WORKER_TIMEOUT_RETURN
Has a return timeout been set for the worker.
Return value
Various
Home
To find out more information please check: https://gearman.org/gearmand/
SEE ALSO:
Releases
9 releases since Debian 6.0 (Squeeze); the text changed 7 times.