We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a8c855 commit 862721bCopy full SHA for 862721b
hkube_python_wrapper/communication/streaming/StreamingListener.py
@@ -1,5 +1,7 @@
1
import threading
2
import time
3
+import uuid
4
+
5
from hkube_python_wrapper.util.DaemonThread import DaemonThread
6
7
class StreamingListener(DaemonThread):
@@ -18,7 +20,8 @@ def run(self):
18
20
time.sleep(1) # free some cpu
19
21
continue
22
for listener in messageListeners:
- listener.thread = threading.Thread(target=self.fetch, args=[listener])
23
+ threadName = listener.messageOriginNodeName + "_" + str(uuid.uuid4())
24
+ listener.thread = threading.Thread(name=threadName,target=self.fetch, args=[listener])
25
listener.thread.start()
26
27
listener.thread.join()
0 commit comments