1gearman_worker_register(3) Gearman gearman_worker_register(3)
2
3
4
6 gearman_worker_register - Worker Declarations
7
9 #include <libgearman/gearman.h>
10
11 gearman_return_t gearman_worker_register(gearman_worker_st *worker,
12 const char *function_name, uint32_t timeout);
13
15 Register function with job servers with an optional timeout. The time‐
16 out specifies how many seconds the server will wait before marking a
17 job as failed. If timeout is zero, there is no timeout. *
18
20 [in] worker Structure previously initialized with gear‐
21 man_worker_create() or gearman_worker_clone().
22
23 [in] function_name Function name to register.
24
25 [in] timeout Optional timeout (in seconds) that specifies the
26 maximum time a job should. This is enforced on the job server. A
27 value of 0 means an infinite time.
28
30 Standard gearman return value.
31
33 The Gearman homepage: http://www.gearman.org/
34
36 Bugs should be reported at https://bugs.launchpad.net/gearmand
37
39 Copyright (C) 2008 Brian Aker, Eric Day. All rights reserved.
40
41 Use and distribution licensed under the BSD license. See the COPYING
42 file in the original source for full text.
43
44
45
46Gearman 2010-03-15 gearman_worker_register(3)