~eskil/gearmand/gearmand

« back to all changes in this revision

Viewing changes to libgearman-server/gearmand.h

  • Committer: eskil at yelp
  • Date: 2012-09-21 22:02:51 UTC
  • Revision ID: eskil@yelp.com-20120921220251-i99faycq413qx1lc
Adds option to alter jobreduction to not consider jobs being worked on.

Eg. workers that use SQL, may be comitting their work and therefore still
in-progress on the job. Reducing based on an identical unique against
these might be an error then.

And ensuring the uniqueid accounts for that is unduly complex.

This patch adds a commandline option to optionally only reduce against
tasks in the queue currently not assigned to a worker.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                             uint8_t job_retries,
110
110
                             uint8_t worker_wakeup,
111
111
                             gearmand_log_fn *function, void *log_context, const gearmand_verbose_t verbose,
 
112
                             bool job_reduce_queue_only,
112
113
                             bool round_robin);
113
114
 
114
115
/**