aboutsummaryrefslogtreecommitdiffstats
path: root/grokmirror
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-08-26 09:27:54 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-08-26 09:27:54 -0400
commit77008f301f29e14099d51cc4409892f27055e66f (patch)
treefb0bc670f916ea45c1219a8b31ed393ff004dc0e /grokmirror
parent0e2824a63c5da1fa5ef2fe48d773046e27390bd5 (diff)
downloadgrokmirror-77008f301f29e14099d51cc4409892f27055e66f.tar.gz
Don't terminate workers in handler
Python isn't liking that, and setting daemon=True should properly deal with that already. Just save the manifest and exit. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'grokmirror')
-rwxr-xr-xgrokmirror/pull.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/grokmirror/pull.py b/grokmirror/pull.py
index cb83ff5..fb1fd7d 100755
--- a/grokmirror/pull.py
+++ b/grokmirror/pull.py
@@ -55,19 +55,19 @@ class SignalHandler:
def _handler(self, signum, frame):
self.killed = True
logger.debug('Received signum=%s, frame=%s', signum, frame)
- if self.sw:
- self.sw.terminate()
- self.sw.join()
-
- for dw in self.dws:
- if dw and dw.is_alive():
- dw.terminate()
- dw.join()
-
- for pw in self.pws:
- if pw and pw.is_alive():
- pw.terminate()
- pw.join()
+ # if self.sw:
+ # self.sw.terminate()
+ # self.sw.join()
+
+ # for dw in self.dws:
+ # if dw and dw.is_alive():
+ # dw.terminate()
+ # dw.join()
+
+ # for pw in self.pws:
+ # if pw and pw.is_alive():
+ # pw.terminate()
+ # pw.join()
if len(self.done):
update_manifest(self.config, self.done)