g2
g2 copied to clipboard
worker starts only if all servers are available
I have a failover scenario with multiple gearmand servers but most time only one of them is running. With the gearman c library i just add all those servers to our worker and it runs jobs from those who are available. The go worker croaks on worker.Ready() on the first server which is unavailable. Wouldn't it be better to only croak if all server are unavailable?