gearman_task_attr_init(3)

gearman_task_attr_init3

Gearmand documentation, https://gearman.org/gearmand/

Usage

#include <libgearman/gearman.h>

type gearman_work_t
type gearman_job_priority_t
gearman_work_t gearman_work(gearman_job_priority_t priority)
gearman_work_t gearman_work_epoch(time_t epoch, gearman_job_priority_t priority)
gearman_work_t gearman_work_background(gearman_job_priority_t priority)

Compile and link with -lgearman

Overview

gearman_work_t describe work for gearman_execute().

gearman_work() creates a gearman_work_t with a priority.

Job assignment priority is global across registered functions. A high priority job for any function is assigned before normal or low priority jobs for other functions.

gearman_work_epoch() creates a gearman_work_t which tells gearman_execute() to execute the workload at the time specified by epoch.

gearman_work_background() creates a gearman_work_t which tells gearman_execute() to execute the workload as a background job.

Releases

8 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8–9
  3. 10
  4. 11
  5. 12
  6. 13
  7. Arch

Author

Data Differential http://www.datadifferential.com/

From gearmand 2.2.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.