コード例 #1
0
ファイル: socket_client.py プロジェクト: kelceydamage/sherpa
	def agent_query(self, shipment):
		current_process().daemon = False
		processing_object = Processing()
		self.q = processing_object.create_queue()
		response = {}
		p = processing_object.new_process(
			self._child_process,
			[processing_object, shipment]
			)
		response = []	
		for route in shipment.routes():
			queue_response = self.q.get(timeout=4)
			shipment.manifest[route] = queue_response
		p.join()
		return shipment