mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
change the workers on the master top use threading
This commit is contained in:
parent
f9e27a2c42
commit
2ec3a6c873
@ -106,7 +106,7 @@ class ReqServer(multiprocessing.Process):
|
||||
self.workers.bind(self.w_uri)
|
||||
|
||||
for ind in range(int(self.num_threads)):
|
||||
proc = multiprocessing.Process(target=self.__worker)
|
||||
proc = threading.Thread(target=self.__worker)
|
||||
proc.start()
|
||||
|
||||
zmq.device(zmq.QUEUE, self.clients, self.workers)
|
||||
|
Loading…
Reference in New Issue
Block a user