python-gearman

How to configure or install GEARMAN in windows OS?

允我心安 提交于 2020-01-20 05:26:05
问题 I want to implement "GEARMAN" in project but I don't know how to install or configure "GEARMAN" in windows OS. Can anyone provide me any link from where I can work with "GEARMAN"? 回答1: Gearman has to be compiled under the cygwin environment : - install cygwin and open the shell; - download and install libevent; - download and install gearman server. Here is a more detailed tutorial : http://www.phpvs.net/2010/11/30/installing-gearman-and-gearmand-on-windows-with-cygwin/. 回答2: Official website

How to configure or install GEARMAN in windows OS?

ぃ、小莉子 提交于 2020-01-20 05:26:00
问题 I want to implement "GEARMAN" in project but I don't know how to install or configure "GEARMAN" in windows OS. Can anyone provide me any link from where I can work with "GEARMAN"? 回答1: Gearman has to be compiled under the cygwin environment : - install cygwin and open the shell; - download and install libevent; - download and install gearman server. Here is a more detailed tutorial : http://www.phpvs.net/2010/11/30/installing-gearman-and-gearmand-on-windows-with-cygwin/. 回答2: Official website

Python Gearman get data from background task

非 Y 不嫁゛ 提交于 2019-12-07 18:02:54
问题 I'm try use gearman with backgroud tasks and get data progress from worker. In documentation I'm see methods: send_job_data and send_job_status, but with background first method not work (I'm not see data in job.data_updates), but status changes in job.status. I'm use this code for test workers: from gearman import GearmanWorker import time worker = GearmanWorker(['192.168.1.79:4730']) def long_task(work, job): work.send_job_data(job, 'long task') work.send_job_status(job, 0, 3) time.sleep(60

Python Gearman get data from background task

情到浓时终转凉″ 提交于 2019-12-06 00:25:13
I'm try use gearman with backgroud tasks and get data progress from worker. In documentation I'm see methods: send_job_data and send_job_status, but with background first method not work (I'm not see data in job.data_updates), but status changes in job.status. I'm use this code for test workers: from gearman import GearmanWorker import time worker = GearmanWorker(['192.168.1.79:4730']) def long_task(work, job): work.send_job_data(job, 'long task') work.send_job_status(job, 0, 3) time.sleep(60) work.send_job_data(job, 'long task2') work.send_job_status(job, 1,3) time.sleep(120) work.send_job