GEARMAN_CLIENT_RUN_TASKS(3)

πŸ’– GEARMAN_CLIENT_RUN_TASKS πŸ’–

okay bestie, welcome to the Gearmand manual, section 3, and this one is all about making your tasks actually GO. no cap. let's get into it 🫢


🌸 NAME 🌸

gearman_client_run_tasks β€” Gearmand Documentation, http://gearman.info/ ✨


✨ SYNOPSIS ✨

#include <libgearman/gearman.h>

gearman_return_t <#c.gearman_return_t>
gearman_client_run_tasks(gearman_client_st <#c.gearman_client_st>
*client)

and like, you gotta link it too: -lgearman πŸ”—

(yes the angle-bracket thingies are literally in there, i'm not gaslighting you, that's just how the docs are πŸ’€)


πŸ¦‹ DESCRIPTION πŸ¦‹

so gearman_client_run_tasks() runs one or more tasks that you already added β€” like it's the execute button for stuff you queued up. the tasks it handles are the ones you added via:

  • gearman_client_add_task() <#c.gearman_client_add_task>
  • gearman_client_add_task_status() <#c.gearman_client_add_task_status>
  • or gearman_client_add_task_background() <#c.gearman_client_add_task_background>

and here's a little bonus, bestie: gearman_client_run_tasks() can also be used with gearman_execute() <#c.gearman_execute> β€” but only if either non-blocking tasks or background tasks were created with it. that's the vibe check right there. πŸ‘‘


πŸ’… RETURN VALUE πŸ’…

it hands you back a gearman_return_t <#c.gearman_return_t>. slay.

but listen β€” if GEARMAN_PAUSE <#c.GEARMAN_PAUSE> comes back, that means one of the tasks has "paused" so you (the caller) get a lil moment to do your thing, like read data, handle an exception, etc... it's giving intermission. πŸŽ€

for more info about the state of a task, go look at gearman_task_st <#c.gearman_task_st>. that's where the tea is. 🍡

🏠 HOME 🏠

want more? more info lives at: http://gearman.info/ 🌈

See also 🫢


✍️ Author

Data Differential β€” http://www.datadifferential.com/ πŸ’œ


2011-2014, Data Differential, http://www.datadifferential.com/ 🌸


and that's the whole page, bestie, no notes πŸ’– this was version 1.1.21+ds, dated Feb 04, 2026 β€” go forth and run those tasks, icon behavior only πŸ‘‘πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from