GEARMAN_TASK_ATTR_INIT_BACKGROUND(3)

✨ NAME ✨

gearman_task_attr_init_background β€” Gearmand Documentation, http://gearman.info/ πŸ’–

okay so real talk, bestie: this one's a lil documentation page from the Gearmand crew, and the manual it lives in is the Gearmand manual (yes, the whole GEARMAN_TASK_A...INIT_BACKGROUND(3) title situation β€” the middle got eaten, it's giving mystery, but we move 🫢).


🌸 SYNOPSIS 🌸

#include <libgearman/gearman.h>

type gearman_work_t

type gearman_job_priority_t

gearman_work_t gearman_work(gearman_job_priority_t priority)

gearman_work_t gearman_work_epoch(time_t <#c.time_t> epoch,
gearman_job_priority_t priority)

gearman_work_t gearman_work_background(gearman_job_priority_t priority)

and when you build it? literally:

Compile and link with -lgearman

that -lgearman is not optional, babes, it's the whole point πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

gearman_work_t is the lil struct that describes work for gearman_execute() <#c.gearman_execute>. like, it's how you tell the execute function what kind of workload moment we're having ✨

  • gearman_work() β€” makes you a gearman_work_t with a priority. that's it, that's the vibe.
  • gearman_work_epoch() β€” makes a gearman_work_t that tells gearman_execute() <#c.gearman_execute> to run the workload at the exact time specified by epoch. scheduling era, no cap ⏰
  • gearman_work_background() β€” makes a gearman_work_t that tells gearman_execute() <#c.gearman_execute> to run the workload as a background job. main character energy that doesn't wait around πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, iykyk πŸ“š


πŸ‘‘ Author

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

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


and that's the whole page, bestie 🌈 this cutie is from version 1.1.21+ds, dated Feb 04, 20… (the year got cut off by the footer, tragic, but we love her anyway 😭). slay, go write some background jobs fr fr πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from