Commit 7d0b921e authored by Antoine Catton's avatar Antoine Catton

Add exit at the end of cleanup

parent b41a7aa0
...@@ -36,6 +36,7 @@ import logging.handlers ...@@ -36,6 +36,7 @@ import logging.handlers
import signal import signal
import subprocess import subprocess
import argparse import argparse
import sys
cleanup_data = {} cleanup_data = {}
...@@ -53,6 +54,7 @@ def cleanup(signum=None, frame=None): ...@@ -53,6 +54,7 @@ def cleanup(signum=None, frame=None):
function(item) function(item)
except: except:
pass pass
sys.exit()
signal.signal(signal.SIGTERM, cleanup) signal.signal(signal.SIGTERM, cleanup)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment