diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-08-26 09:27:54 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-08-26 09:27:54 -0400 |
commit | 77008f301f29e14099d51cc4409892f27055e66f (patch) | |
tree | fb0bc670f916ea45c1219a8b31ed393ff004dc0e /grokmirror | |
parent | 0e2824a63c5da1fa5ef2fe48d773046e27390bd5 (diff) | |
download | grokmirror-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-x | grokmirror/pull.py | 26 |
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) |