mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
switch to threading
This commit is contained in:
parent
d100437639
commit
190110be8f
1 changed files with 2 additions and 5 deletions
|
@ -19,6 +19,7 @@ import logging
|
|||
import collections
|
||||
import multiprocessing
|
||||
import salt.serializers.msgpack
|
||||
import threading
|
||||
|
||||
# Import third party libs
|
||||
try:
|
||||
|
@ -1965,11 +1966,7 @@ class ClearFuncs(object):
|
|||
ssh_minions = ssh._prep_ssh(**clear_load).targets.keys()
|
||||
if ssh_minions:
|
||||
minions.extend(ssh_minions)
|
||||
|
||||
def wrap_ssh(**kwargs):
|
||||
salt.utils.process.daemonize(False)
|
||||
ssh.cmd(**kwargs)
|
||||
salt.utils.process.SignalHandlingMultiprocessingProcess(target=wrap_ssh, kwargs=clear_load).start()
|
||||
threading.Thread(target=ssh.cmd, kwargs=clear_load).start()
|
||||
|
||||
self._send_pub(payload)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue