Hello guys,
Would u like to tell me how to specify the worker to run the job? My
environment like this:
Gearmand just as a server, and two workers( one called wrk1 which
running on 192.168.1.11,another called wrk2 running on 192.168.1.12) have
the same function called job. I want to do the job on the 192.168.1.11 at
sometimes or do the job at together.
My source code as bellow:
gearman_client_st *client= gearman_client_create(NULL);
gearman_return_t ret= gearman_client_add_server(client, "localhost",
4730);
void *value= gearman_client_do(client, task_name, "unique_value",
task_para,
strlen(task_para),
&result_size, &rc);
Thanks very much
Auror.cao