예제 #1
0
def produce_job_tes():
	Consumer.push_task(queue_ip='103.6.222.21', queue_port=4730, queue_name='OCDNQUEUE', data='hello')
예제 #2
0
파일: producer.py 프로젝트: lewdon/OpenCDN
def produce_job_tes():
    Consumer.push_task(queue_ip="103.6.222.21", queue_port=4730, queue_name="OCDNQUEUE", data="hello")
예제 #3
0
def produce_job_tes():
    Consumer.push_task(queue_ip='103.6.222.21',
                       queue_port=4730,
                       queue_name='OCDNQUEUE',
                       data='hello')
예제 #4
0
	def do_task(self, gearman_worker, job):
		data = job.data
		parameters = json.loads(data)
		Consumer.push_task(queue_ip='103.6.222.21', queue_port=4730, queue_name='OCDNQUEUE', data=parameters)
		print parameters
		return 'True'