.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "GEARMAN_JOB_SEND_EXCEPTION" "3" "Jan 31, 2024" "1.1.20+ds" "Gearmand" .SH NAME gearman_job_send_exception \- Gearmand Documentation, http://gearman.info/ .SH SYNOPSIS .sp #include .INDENT 0.0 .TP .B type gearman_job_st .UNINDENT .INDENT 0.0 .TP .B void gearman_job_free(\fI\%gearman_job_st\fP *job) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_return_t\fP gearman_job_send_data(\fI\%gearman_job_st\fP *job, const void *data, \fI\%size_t\fP data_size) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_return_t\fP gearman_job_send_warning(\fI\%gearman_job_st\fP *job, const void *warning, \fI\%size_t\fP warning_size) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_return_t\fP gearman_job_send_status(\fI\%gearman_job_st\fP *job, \fI\%uint32_t\fP numerator, \fI\%uint32_t\fP denominator) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_return_t\fP gearman_job_send_complete(\fI\%gearman_job_st\fP *job, const void *result, \fI\%size_t\fP result_size) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_return_t\fP gearman_job_send_exception(\fI\%gearman_job_st\fP *job, const void *exception, \fI\%size_t\fP exception_size) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_return_t\fP gearman_job_send_fail(\fI\%gearman_job_st\fP *job) .UNINDENT .INDENT 0.0 .TP .B const char *gearman_job_handle(const \fI\%gearman_job_st\fP *job) .UNINDENT .INDENT 0.0 .TP .B const char *gearman_job_function_name(const \fI\%gearman_job_st\fP *job) .UNINDENT .INDENT 0.0 .TP .B const char *gearman_job_unique(const \fI\%gearman_job_st\fP *job) .UNINDENT .INDENT 0.0 .TP .B const void *gearman_job_workload(const \fI\%gearman_job_st\fP *job) .UNINDENT .INDENT 0.0 .TP .B \fI\%size_t\fP gearman_job_workload_size(const \fI\%gearman_job_st\fP *job) .UNINDENT .INDENT 0.0 .TP .B void *gearman_job_take_workload(\fI\%gearman_job_st\fP *job, \fI\%size_t\fP *data_size) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_client_st\fP *gearman_job_use_client(\fI\%gearman_job_st\fP *job) .UNINDENT .sp Link with \-lgearman .SH DESCRIPTION .sp \fI\%gearman_job_st\fP are passed to worker functions to represent jobs that are being run by \fI\%gearman_worker_work()\fP\&. .sp \fI\%gearman_job_free()\fP is used to free a job. This only needs to be done if a task was created with a preallocated structure. .sp \fI\%gearman_job_handle()\fP returns the job handle(see \fI\%gearman_job_handle_t\fP for more information). .sp \fI\%gearman_job_function_name()\fP return the name of the function that the job was set to execute against. .sp \fI\%gearman_job_unique()\fP return the unique value that was used for \fI\%gearman_job_st\fP\&. .sp gearman_job_take_workload returns the \fI\%gearman_job_st\fP workload. The size of it can be determined with \fI\%gearman_job_workload_size()\fP\&. \fI\%gearman_job_take_workload()\fP is the same as \fI\%gearman_job_workload()\fP with the exception that the result must be \fBfree(3)\fP by the caller. .sp gearman_job_use_client returns a \fI\%gearman_client_st\fP configured from gearman_job_st. The gearman_client_st can be used to communicate client API commands to the server. You do not, and should not, call \fI\%gearman_client_free()\fP on the gearman_client_st. It is cleaned up when job is cleaned up. .SH RETURN VALUE .sp A value of \fI\%gearman_return_t\fP is returned. On success that value will be :c:type::\fIGEARMAN_SUCCESS\fP\&. Use \fI\%gearman_strerror()\fP to translate this value to a printable string. .SH HOME .sp To find out more information please check: \fI\%http://gearman.info/\fP .SH SEE ALSO .sp \fBgearmand(8)\fP \fBlibgearman(3)\fP .SH AUTHOR Data Differential http://www.datadifferential.com/ .SH COPYRIGHT 2011-2024, Data Differential, http://www.datadifferential.com/ .\" Generated by docutils manpage writer. .