~clint-fewbar/ubuntu/precise/gearmand/drop-unneeded-patches

« back to all changes in this revision

Viewing changes to docs/man/gearman_continue.3

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2009-09-28 21:43:31 UTC
  • mto: (1.2.3 upstream) (6.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20090928214331-9bku0d3v1b1ypgp4
ImportĀ upstreamĀ versionĀ 0.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "GEARMAN_CONTINUE" "3" "December 15, 2011" "0.26" "Gearmand"
2
 
.SH NAME
3
 
gearman_continue \- Gearmand Documentation, http://gearman.info/
4
 
.
5
 
.nr rst2man-indent-level 0
6
 
.
7
 
.de1 rstReportMargin
8
 
\\$1 \\n[an-margin]
9
 
level \\n[rst2man-indent-level]
10
 
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11
 
-
12
 
\\n[rst2man-indent0]
13
 
\\n[rst2man-indent1]
14
 
\\n[rst2man-indent2]
15
 
..
16
 
.de1 INDENT
17
 
.\" .rstReportMargin pre:
18
 
. RS \\$1
19
 
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
 
. nr rst2man-indent-level +1
21
 
.\" .rstReportMargin post:
22
 
..
23
 
.de UNINDENT
24
 
. RE
25
 
.\" indent \\n[an-margin]
26
 
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
 
.nr rst2man-indent-level -1
28
 
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
 
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
 
..
31
 
.\" Man page generated from reStructeredText.
32
 
.
33
 
.SH SYNOPSIS
34
 
.sp
35
 
#include <libgearman/gearman.h>
36
 
.INDENT 0.0
37
 
.TP
38
 
.B gearman_return_t
39
 
.UNINDENT
40
 
.INDENT 0.0
41
 
.TP
42
 
.B const char *gearman_strerror(\fI\%gearman_return_t\fP\fI\ rc\fP)
43
 
.UNINDENT
44
 
.INDENT 0.0
45
 
.TP
46
 
.B bool gearman_success(\fI\%gearman_return_t\fP\fI\ rc\fP)
47
 
.UNINDENT
48
 
.INDENT 0.0
49
 
.TP
50
 
.B bool gearman_failed(\fI\%gearman_return_t\fP\fI\ rc\fP)
51
 
.UNINDENT
52
 
.INDENT 0.0
53
 
.TP
54
 
.B bool gearman_continue(\fI\%gearman_return_t\fP\fI\ rc\fP)
55
 
.UNINDENT
56
 
.sp
57
 
Compile and link with \-lgearman
58
 
.SH DESCRIPTION
59
 
.sp
60
 
\fI\%gearman_return_t\fP is used as a return/error type for all calls using \fBgearman_client_st\fP and \fBgearman_worker_st\fP.
61
 
\fI\%GEARMAN_SUCCESS\fP is returned upon success, otherwise an error is returned. \fI\%gearman_failed()\fP can be used to see if the return value is a failing value.
62
 
You can print a text version of the error message with \fI\%gearman_strerror()\fP.
63
 
.sp
64
 
\fI\%gearman_success()\fP return true if \fI\%GEARMAN_SUCCESS\fP or if
65
 
\fI\%GEARMAN_NO_PENDING_TASKS\fP tests true.
66
 
.sp
67
 
\fI\%gearman_failed()\fP return true if any value other then \fI\%GEARMAN_SUCCESS\fP was provided.
68
 
.sp
69
 
\fI\%gearman_continue()\fP returns true if any error related to non\-blocking IO
70
 
occurred. This should be used for testing loops.
71
 
.SS Possible values of \fI\%gearman_return_t\fP:
72
 
.INDENT 0.0
73
 
.TP
74
 
.B GEARMAN_SUCCESS
75
 
Success
76
 
.UNINDENT
77
 
.INDENT 0.0
78
 
.TP
79
 
.B GEARMAN_NO_PENDING_TASKS
80
 
\fBgearman_client_run_tasks()\fP was called and it has completed all tasks assigned to the client.
81
 
.UNINDENT
82
 
.INDENT 0.0
83
 
.TP
84
 
.B GEARMAN_IO_WAIT
85
 
Blocking IO was found. gearman_continue() can be used to test for this.
86
 
.UNINDENT
87
 
.INDENT 0.0
88
 
.TP
89
 
.B GEARMAN_ERRNO
90
 
System error occurred. Use either \fBgearman_client_errno()\fP or \fBgearman_worker_errno()\fP
91
 
.UNINDENT
92
 
.INDENT 0.0
93
 
.TP
94
 
.B GEARMAN_NO_ACTIVE_FDS
95
 
No active connections were available.  gearman_continue() can be used to test for this.
96
 
.UNINDENT
97
 
.INDENT 0.0
98
 
.TP
99
 
.B GEARMAN_GETADDRINFO
100
 
Name resolution failed for a host.
101
 
.UNINDENT
102
 
.INDENT 0.0
103
 
.TP
104
 
.B GEARMAN_NO_SERVERS
105
 
No servers have been provided for the client/worker.
106
 
.UNINDENT
107
 
.INDENT 0.0
108
 
.TP
109
 
.B GEARMAN_LOST_CONNECTION
110
 
Connection was lost to the given server.
111
 
.UNINDENT
112
 
.INDENT 0.0
113
 
.TP
114
 
.B GEARMAN_MEMORY_ALLOCATION_FAILURE
115
 
Memory allocation failed.
116
 
.UNINDENT
117
 
.INDENT 0.0
118
 
.TP
119
 
.B GEARMAN_SERVER_ERROR
120
 
An error occurred on the server.
121
 
.UNINDENT
122
 
.INDENT 0.0
123
 
.TP
124
 
.B GEARMAN_NOT_CONNECTED
125
 
Client/Worker is not currently connected to the server.
126
 
.UNINDENT
127
 
.INDENT 0.0
128
 
.TP
129
 
.B GEARMAN_COULD_NOT_CONNECT
130
 
Server name was valid, but a connection could not be made.
131
 
.UNINDENT
132
 
.INDENT 0.0
133
 
.TP
134
 
.B GEARMAN_ECHO_DATA_CORRUPTION
135
 
Either \fBgearman_client_echo()\fP or \fBgearman_work_echo()\fP echo was unsuccessful because the data was returned from \fBgearmand\fP corrupted.
136
 
.UNINDENT
137
 
.INDENT 0.0
138
 
.TP
139
 
.B GEARMAN_UNKNOWN_STATE
140
 
The gearman_return_t was never set.
141
 
.UNINDENT
142
 
.INDENT 0.0
143
 
.TP
144
 
.B GEARMAN_FLUSH_DATA
145
 
Internal state, should never be seen by either client or worker.
146
 
.UNINDENT
147
 
.INDENT 0.0
148
 
.TP
149
 
.B GEARMAN_SEND_BUFFER_TOO_SMALL
150
 
Send buffer was too small.
151
 
.UNINDENT
152
 
.INDENT 0.0
153
 
.TP
154
 
.B GEARMAN_TIMEOUT
155
 
A timeout occurred when making a request to the server.
156
 
.UNINDENT
157
 
.INDENT 0.0
158
 
.TP
159
 
.B GEARMAN_ARGUMENT_TOO_LARGE
160
 
Argument was too large for the current buffer.
161
 
.UNINDENT
162
 
.INDENT 0.0
163
 
.TP
164
 
.B GEARMAN_INVALID_ARGUMENT
165
 
One of the arguments to the given API call was invalid. EINVAL will be set if \fBgearman_client_error()\fP or \fBgearman_worker_error()\fP were not settable. This can also be returned if \fBGEARMAN_CLIENT_UNBUFFERED_RESULT\fP was set, but the client is not handling the data correctly.
166
 
.UNINDENT
167
 
.SS CLIENT ONLY
168
 
.INDENT 0.0
169
 
.TP
170
 
.B GEARMAN_NEED_WORKLOAD_FN
171
 
A client was asked for work, but no \fBgearman_workload_fn\fP callback was specified. See \fBgearman_client_set_workload_fn()\fP
172
 
.UNINDENT
173
 
.INDENT 0.0
174
 
.TP
175
 
.B GEARMAN_WORK_FAIL
176
 
A task has failed, and the worker has exited with an error or it called \fBgearman_job_send_fail()\fP
177
 
.UNINDENT
178
 
.INDENT 0.0
179
 
.TP
180
 
.B GEARMAN_IN_PROGRESS
181
 
\fBgearman_client_job_status()\fP has been called for a \fBgearman_job_handle_t\fP and the Job is currently being run by a worker.
182
 
.UNINDENT
183
 
.INDENT 0.0
184
 
.TP
185
 
.B GEARMAN_JOB_EXISTS
186
 
\fBgearman_client_job_status()\fP has been called for a \fBgearman_job_handle_t\fP and the Job is currently known by a server, but is not being run by a worker.
187
 
.UNINDENT
188
 
.SS WORKER ONLY
189
 
.INDENT 0.0
190
 
.TP
191
 
.B GEARMAN_INVALID_FUNCTION_NAME
192
 
A worker was sent a request for a job that it did not have a valid function for.
193
 
.UNINDENT
194
 
.INDENT 0.0
195
 
.TP
196
 
.B GEARMAN_INVALID_WORKER_FUNCTION
197
 
No callback was provided by the worker for a given function.
198
 
.UNINDENT
199
 
.INDENT 0.0
200
 
.TP
201
 
.B GEARMAN_NO_REGISTERED_FUNCTION
202
 
A request for removing a given function from a worker was invalid since that function did not exist.
203
 
.UNINDENT
204
 
.INDENT 0.0
205
 
.TP
206
 
.B GEARMAN_NO_REGISTERED_FUNCTIONS
207
 
The worker has not registered any functions.
208
 
.UNINDENT
209
 
.INDENT 0.0
210
 
.TP
211
 
.B GEARMAN_NO_JOBS
212
 
No jobs were found for the worker.
213
 
.UNINDENT
214
 
.SS WORKER TO CLIENT
215
 
.sp
216
 
Client which have registed a custom \fBgearman_actions_t\fP may use these
217
 
value as return values to the calling client.
218
 
.INDENT 0.0
219
 
.TP
220
 
.B GEARMAN_WORK_DATA
221
 
Worker has sent a chunked piece of data to the client via \fBgearman_job_send_data()\fP
222
 
.UNINDENT
223
 
.INDENT 0.0
224
 
.TP
225
 
.B GEARMAN_WORK_WARNING
226
 
Worker has issued a warning to the client via \fBgearman_job_send_warning()\fP
227
 
.UNINDENT
228
 
.INDENT 0.0
229
 
.TP
230
 
.B GEARMAN_WORK_STATUS
231
 
Status has been updated by the worker via \fBgearman_job_send_status()\fP
232
 
.UNINDENT
233
 
.INDENT 0.0
234
 
.TP
235
 
.B GEARMAN_WORK_EXCEPTION
236
 
Worker has sent an exception the client via \fBgearman_job_send_exception()\fP
237
 
.UNINDENT
238
 
.INDENT 0.0
239
 
.TP
240
 
.B GEARMAN_WORK_FAIL
241
 
A task has failed, and the worker has exited with an error or it called \fBgearman_job_send_fail()\fP
242
 
.UNINDENT
243
 
.INDENT 0.0
244
 
.TP
245
 
.B GEARMAN_WORK_ERROR
246
 
A task has had an error and will be retried.
247
 
.UNINDENT
248
 
.INDENT 0.0
249
 
.TP
250
 
.B GEARMAN_PAUSE
251
 
Used only in custom application for client return based on \fI\%GEARMAN_WORK_DATA\fP, \fI\%GEARMAN_WORK_WARNING\fP, \fI\%GEARMAN_WORK_EXCEPTION\fP, \fI\%GEARMAN_WORK_FAIL\fP, or \fI\%GEARMAN_WORK_STATUS\fP. \fI\%gearman_continue()\fP can be used to check for this value.
252
 
.UNINDENT
253
 
.SS WORKER TO CLIENT
254
 
.sp
255
 
Any function defined by \fBgearman_worker_define_function()\fP may, and can only, return the following \fI\%gearman_return_t\fP values.
256
 
.INDENT 0.0
257
 
.TP
258
 
.B GEARMAN_SUCCESS
259
 
The function successfully completed the job.
260
 
.UNINDENT
261
 
.INDENT 0.0
262
 
.TP
263
 
.B GEARMAN_FATAL
264
 
The function failed to complete the job.
265
 
.UNINDENT
266
 
.INDENT 0.0
267
 
.TP
268
 
.B GEARMAN_ERROR
269
 
A task has had an error and will be retried.
270
 
.UNINDENT
271
 
.INDENT 0.0
272
 
.TP
273
 
.B GEARMAN_SHUTDOWN
274
 
\fI\%GEARMAN_SHUTDOWN\fP is a special case. If it is returned the client will be sent \fI\%GEARMAN_SUCCESS\fP, but \fBgearman_worker_work()\fP will exit with \fI\%GEARMAN_SHUTDOWN\fP.
275
 
.UNINDENT
276
 
.SS TASK ONLY
277
 
.INDENT 0.0
278
 
.TP
279
 
.B GEARMAN_NOT_FLUSHING
280
 
\fBgearman_task_send_workload()\fP failed, it was not in the correct state.
281
 
.UNINDENT
282
 
.INDENT 0.0
283
 
.TP
284
 
.B GEARMAN_DATA_TOO_LARGE
285
 
\fBgearman_task_send_workload()\fP failed, the data was too large to be sent.
286
 
.UNINDENT
287
 
.SS PROTOCOL
288
 
.sp
289
 
If any of these errors occurred the connection will be dropped/reset.
290
 
.INDENT 0.0
291
 
.TP
292
 
.B GEARMAN_INVALID_MAGIC
293
 
.UNINDENT
294
 
.INDENT 0.0
295
 
.TP
296
 
.B GEARMAN_INVALID_COMMAND
297
 
.UNINDENT
298
 
.INDENT 0.0
299
 
.TP
300
 
.B GEARMAN_INVALID_PACKET
301
 
.UNINDENT
302
 
.INDENT 0.0
303
 
.TP
304
 
.B GEARMAN_UNEXPECTED_PACKET
305
 
.UNINDENT
306
 
.INDENT 0.0
307
 
.TP
308
 
.B GEARMAN_TOO_MANY_ARGS
309
 
.UNINDENT
310
 
.SH SEE ALSO
311
 
.sp
312
 
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_client_error()\fP or \fIgearman_worker_error()\fP
313
 
.SH AUTHOR
314
 
Data Differential http://datadifferential.com/
315
 
.SH COPYRIGHT
316
 
2011, Data Differential, http://datadifferential.com/
317
 
.\" Generated by docutils manpage writer.
318
 
.\" 
319
 
.