File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
hkube_python_wrapper/wrapper Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -475,10 +475,6 @@ def _stopAlgorithm(self, options):
475
475
else :
476
476
self ._stopped = True
477
477
try :
478
- method = self ._getMethod ('stop' )
479
- if (method is not None ):
480
- method (options )
481
-
482
478
forceStop = options .get ('forceStop' , False )
483
479
if (forceStop is True ):
484
480
log .info ('stopping using force flag' )
@@ -503,7 +499,9 @@ def stopping():
503
499
self ._checkQueueSize (event = 'scale down' )
504
500
else :
505
501
self ._hkubeApi .stopStreaming (force = forceStop )
506
-
502
+ method = self ._getMethod ('stop' )
503
+ if (method is not None ):
504
+ method (options )
507
505
if (self ._runningStartThread ):
508
506
self ._runningStartThread .join ()
509
507
log .info ('Joined threads algorithm and stop algorithm' )
You can’t perform that action at this time.
0 commit comments