We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c000350 commit 975ada6Copy full SHA for 975ada6
src/aleph/vm/orchestrator/supervisor.py
@@ -140,7 +140,11 @@ async def stop_all_vms(app: web.Application):
140
141
def run():
142
"""Run the VM Supervisor."""
143
+ # Loop creation set here to avoid bug with Future on different loop
144
+
145
loop = asyncio.new_event_loop()
146
+ # apparently needed for Python 3.9 / Debian 11
147
+ asyncio.set_event_loop(loop)
148
settings.check()
149
150
engine = setup_engine()
@@ -163,7 +167,6 @@ def run():
163
167
164
168
try:
165
169
if settings.WATCH_FOR_MESSAGES:
166
- # FIXME We have a bug because task run on app.on_ don't run on the same loop?
170
app.on_startup.append(start_watch_for_messages_task)
171
app.on_startup.append(start_payment_monitoring_task)
172
app.on_cleanup.append(stop_watch_for_messages_task)
0 commit comments