File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
hkube_python_wrapper/wrapper Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import print_function , division , absolute_import
2
2
3
+ import threading
3
4
import time
4
5
5
6
from hkube_python_wrapper .util .DaemonThread import DaemonThread
@@ -50,6 +51,7 @@ def __init__(self):
50
51
self ._runningStartThread = None
51
52
self ._stopped = False
52
53
self ._redirectLogs = False
54
+ self ._printThread = 0
53
55
DaemonThread .__init__ (self , "WorkerListener" )
54
56
55
57
@staticmethod
@@ -349,6 +351,12 @@ def _discovery_update(self, discovery):
349
351
350
352
def _setupStreamingProducer (self , nodeName ):
351
353
def onStatistics (statistics ):
354
+ thread_list = ""
355
+ self ._printThread = self ._printThread + 1
356
+ for thread in threading .enumerate ():
357
+ thread_list = thread_list + " " + str (thread .name )
358
+ if (self ._printThread % 30 == 0 ):
359
+ log .debug ("thread list: " + thread_list )
352
360
self ._sendCommand (messages .outgoing .streamingStatistics , statistics )
353
361
354
362
producerConfig = {}
You can’t perform that action at this time.
0 commit comments