Skip to content

Commit db4aec3

Browse files
committed
Fix bug found on debian 11 / python 3.9 droplet
1 parent c000350 commit db4aec3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/aleph/vm/orchestrator/supervisor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ async def stop_all_vms(app: web.Application):
140140

141141
def run():
142142
"""Run the VM Supervisor."""
143+
# Loop creation set here to avoid bug with Future on different loop
144+
143145
loop = asyncio.new_event_loop()
146+
# apparently needed for Python 3.9 / Debian 11
147+
asyncio.set_event_loop(loop)
144148
settings.check()
145149

146150
engine = setup_engine()

0 commit comments

Comments
 (0)