9
9
#include <libgearman/gearman.h>
11
.. c:function:: gearman_return_t gearman_client_do_background(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, char *job_handle);
11
.. c:type:: gearman_priority_t
13
.. c:function:: gearman_return_t gearman_client_do_background(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, char *job_handle)
13
15
.. versionchanged:: 0.21
14
16
:c:type:`GEARMAN_PAUSE` will no longer be returned. A do operation will now run until it has been submitted.
16
.. c:function:: gearman_return_t gearman_client_do_high_background(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, gearman_job_handle_t job_handle);
18
.. c:function:: gearman_return_t gearman_client_do_high_background(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, gearman_job_handle_t job_handle)
18
.. c:function:: gearman_return_t gearman_client_do_low_background(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, gearman_job_handle_t job_handle);
20
.. c:function:: gearman_return_t gearman_client_do_low_background(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, gearman_job_handle_t job_handle)
25
:c:func:`gearman_client_do_background()` executes a single request to the
27
:c:func:`gearman_client_do_background` executes a single request to the
26
28
gearmand server and returns the status via :c:type:`gearman_return_t`.
28
:c:func:`gearman_client_do_background_high()` and
29
:c:func:`gearman_client_do_background_low()` are identical to
30
:c:func:`gearman_client_do_background()`, only they set the :c:type:`gearman_priority_t` to either
30
:c:func:`gearman_client_add_task_high_background` and :c:func:`gearman_client_add_task_low_background` are identical to
31
:c:func:`gearman_client_do_background`, only they set the :c:type:`gearman_priority_t` to either high or low.
34
34
If job_handle is not NULL, it will be populated with the name of the job_handle