From 4a2dd01132b2993006f2deca1c9bab17de51461a Mon Sep 17 00:00:00 2001 From: bravof Date: Wed, 19 Aug 2020 19:14:01 -0400 Subject: [PATCH] fix(processes): .terminate instead of .kill to finish misbehaving processes Change-Id: I68eba9c9da669242292ff93c656e1a54da9cf541 Signed-off-by: bravof (cherry picked from commit 06ad698093d4e39b199ba466617bf8cef6df5c42) --- osm_mon/collector/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_mon/collector/service.py b/osm_mon/collector/service.py index 7673aed..5452c66 100644 --- a/osm_mon/collector/service.py +++ b/osm_mon/collector/service.py @@ -130,7 +130,7 @@ class CollectorService: process.join(timeout=20) for process in processes: if process.is_alive(): - process.kill() + process.terminate() metrics = [] while not self.queue.empty(): metrics.append(self.queue.get()) -- 2.25.1