Python Gearman get data from background task
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