Skip to content

Commit 02fe3aa

Browse files
committed
Stop the guest api if a VM fail to start
1 parent d474755 commit 02fe3aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/aleph/vm/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ async def start(self):
334334
await self.save()
335335
except Exception:
336336
await self.vm.teardown()
337+
await self.vm.stop_guest_api()
337338
raise
338339

339340
async def wait_for_init(self):

0 commit comments

Comments
 (0)