Skip to content

Commit c1d079c

Browse files
authored
HOTFIX
SkyEye process gets doubled on /node restart
1 parent e9c1d09 commit c1d079c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/skyeye/extension.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import aiohttp
22
import asyncio
3+
import atexit
34
import certifi
45
import os
56
import psutil
@@ -212,6 +213,7 @@ def run_subprocess():
212213
p = await asyncio.to_thread(run_subprocess)
213214
try:
214215
self.process = psutil.Process(p.pid)
216+
atexit.register(self.terminate)
215217
if self.config.get('affinity'):
216218
self.set_affinity(self.config['affinity'])
217219
else:

0 commit comments

Comments
 (0)