carta
gearman_actions_t(3)

gearman_actions_t3

Gearmand documentation, https://gearman.org/gearmand/

Usage

Link to -lgearman

Overview

Callbacks for client execution task states.

gearman_client_set_data_fn() sets the callback function that will be called if server is to make a request to the client to provide more data.

gearman_client_do_job_handle() gest the job handle for the running task. This should be used between repeated gearman_client_do() (and related) calls to get information.

gearman_client_clear_fn() can be called to remove all existing gearman_actions_t that have been set.

gearman_client_set_created_fn(), gearman_client_set_data_fn(), gearman_client_set_warning_fn(), gearman_client_set_status_fn(), gearman_client_set_complete_fn(), gearman_client_set_exception_fn(), and gearman_client_set_fail_fn(), set callback functions for the different states of execution for a client request. Each request, ie a creation of gearman_task_st, keeps a copy of callbacks when it is created.

gearman_client_set_exception_fn() will only be called if exceptions are enabled on the server. You can do this by calling gearman_client_set_server_option().

An example of this:

const char *EXCEPTIONS="exceptions";
gearman_client_set_server_option(client, EXCEPTIONS, strlen(EXCEPTIONS));

Return value

None

SEE ALSO:

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch) to Debian 8 (Jessie)
  • Debian 7 (Wheezy)

Author

Data Differential http://www.datadifferential.com/

From gearmand 2.2.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.