We often used the following code to connect to gearman server to get job:
gm_worker = gearman.GearmanWorker([\'localhost:4730\']) gm_worker.set_client_id(\'xxxwor