GEARMAN_JOB_SEND_EXCEPTION(3)
β¨ GEARMAN_JOB_SEND_EXCEPTION β¨
okay bestie, buckle up π this is the <gear_job_send_exception> page out of the Gearmand docs, and yes it lives over at http://gearman.info/ β she's a libgearman(3) girlie, iykyk.
πΈ NAME πΈ
gearman_job_send_exception β Gearmand Documentation, http://gearman.info/
π SYNOPSIS π
#include <libgearman/gearman.h>
type gearman_job_st
void gearman_job_free(gearman_job_st *job)
gearman_return_t <#c.gearman_return_t>
gearman_job_send_data(gearman_job_st *job, const void *data, size_t <#c
.size_t> data_size)
gearman_return_t <#c.gearman_return_t>
gearman_job_send_warning(gearman_job_st *job, const void *warning,
size_t <#c.size_t> warning_size)
gearman_return_t <#c.gearman_return_t>
gearman_job_send_status(gearman_job_st *job, uint32_t <#c.uint32_t>
numerator, uint32_t <#c.uint32_t> denominator)
gearman_return_t <#c.gearman_return_t>
gearman_job_send_complete(gearman_job_st *job, const void *result,
size_t <#c.size_t> result_size)
gearman_return_t <#c.gearman_return_t>
gearman_job_send_exception(gearman_job_st *job, const void *exception,
size_t <#c.size_t> exception_size)
gearman_return_t <#c.gearman_return_t>
gearman_job_send_fail(gearman_job_st *job)
const char *gearman_job_handle(const gearman_job_st *job)
const char *gearman_job_function_name(const gearman_job_st *job)
const char *gearman_job_unique(const gearman_job_st *job)
const void *gearman_job_workload(const gearman_job_st *job)
size_t <#c.size_t> gearman_job_workload_size(const gearman_job_st *job)
void *gearman_job_take_workload(gearman_job_st *job, size_t <#c.size_t>
*data_size)
gearman_client_st <#c.gearman_client_st>
*gearman_job_use_client(gearman_job_st *job)
Link with -lgearman
Link with -lgearman fr fr, don't forget it π
π¦ DESCRIPTION π¦
gearman_job_st is what gets handed to worker functions, and it represents the jobs that are being run by gearman_worker_work() <#c.gearman_worker_work>. she's the main character of your worker callback, periodt π
gearman_job_free()β frees a job. the way that you only need to do this if a task was created with a preallocated structure?? lowkey iconic. no cap.gearman_job_handle()β returns the job handle (go peek atgearman_job_handle_t<#c.gearman_job_handle_t> for more info bestie).gearman_job_function_name()β returns the name of the function that the job was set to execute against. like, what was she even hired to do πgearman_job_unique()β returns the unique value that was used forgearman_job_st.gearman_job_take_workloadβ returns thegearman_job_stworkload. you can figure out how big it is withgearman_job_workload_size().gearman_job_take_workload()is literally the same asgearman_job_workload()except that the result must befree(3)'d by the caller. not optional, bestie β that's your cleanup duty now π§Ήgearman_job_use_clientβ returns agearman_client_st<#c.gearman_client_st> configured fromgearman_job_st. thatgearman_client_stcan be used to communicate client API commands to the server. and listen: you do not, and you should not, callgearman_client_free()<#c.gearman_client_free> on thatgearman_client_st. it gets cleaned up when the job gets cleaned up. hands off, she's got a chaperone π
π RETURN VALUE π
a value of gearman_return_t <#c.gearman_return_t> is returned. on success that value will be :c:type::GEARMAN_SUCCESS. use gearman_strerror() <#c.gearman_strerror> to translate that value into a printable string. she speaks fluent error-code, you just need the translator app β¨
π HOME π
want more tea? go check out: http://gearman.info/
π SEE ALSO π
π Author π
Data Differential http://www.datadifferential.com/
π Copyright π
2011-2014, Data Differential, http://www.datadifferential.com/
and that's the whole page, bestie, we ate and left zero crumbs π₯ this was version 1.1.21+ds, dated Feb 04, 2026, from the GEARMAN_JOB_SEND_EXCEPTION(3) era of the Gearmand manual. mwah, go free your workloads ππ«Ά
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms