Skip to content
Snippets Groups Projects
Commit 0697382b authored by Manuela Kuhn's avatar Manuela Kuhn
Browse files

Fixed stop signal handling

parent 9ead3b0d
No related branches found
No related tags found
No related merge requests found
......@@ -343,9 +343,6 @@ class SignalHandler():
# send signal back to receiver
self.sendResponse(signal)
# send signal to TaskManager
self.forwardSignal = ["CLOSE_SOCKETS", socketIds]
for element in tmpRemoveElement:
socketId = element[0]
......@@ -369,6 +366,11 @@ class SignalHandler():
if correspList != None:
correspList[i] = correspList[i] % len(listToCheck[i])
# send signal to TaskManager
self.forwardSignal = ["CLOSE_SOCKETS", socketIds]
return listToCheck, variList, correspList
def reactToSignal (self, signal, socketIds):
......@@ -399,7 +401,7 @@ class SignalHandler():
elif signal == "STOP_STREAM" or signal == "STOP_STREAM_METADATA":
self.log.info("Received signal: " + signal + " for host " + str(socketIds))
self.__stopSignal(signal, socketIds, self.openRequPerm, None, self.nextRequNode)
self.openRequPerm, nonetmp, self.nextRequNode = self.__stopSignal(signal, socketIds, self.openRequPerm, None, self.nextRequNode)
return
......@@ -431,7 +433,7 @@ class SignalHandler():
elif signal == "STOP_QUERY_NEXT" or signal == "STOP_QUERY_METADATA":
self.log.info("Received signal: " + signal + " for hosts " + str(socketIds))
self.__stopSignal(signal, socketIds, self.allowedQueries, self.openRequVari, None)
self.allowedQueries, self.openRequVari, nonetmp = self.__stopSignal(signal, socketIds, self.allowedQueries, self.openRequVari, None)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment