mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-27 10:00:38 +00:00
python tests: broker: support stopping using SIGKILL
This commit is contained in:
@@ -54,7 +54,10 @@ class NeonBroker:
|
||||
else:
|
||||
break # success
|
||||
|
||||
def stop(self):
|
||||
def stop(self, immediate: bool = False):
|
||||
if self.handle is not None:
|
||||
self.handle.terminate()
|
||||
if immediate:
|
||||
self.handle.kill()
|
||||
else:
|
||||
self.handle.terminate()
|
||||
self.handle.wait()
|
||||
|
||||
Reference in New Issue
Block a user