File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/aleph/vm/orchestrator Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,11 @@ async def stop_all_vms(app: web.Application):
140
140
141
141
def run ():
142
142
"""Run the VM Supervisor."""
143
+ # Loop creation set here to avoid bug with Future on different loop
144
+
143
145
loop = asyncio .new_event_loop ()
146
+ # apparently needed for Python 3.9 / Debian 11
147
+ asyncio .set_event_loop (loop )
144
148
settings .check ()
145
149
146
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?
167
170
app .on_startup .append (start_watch_for_messages_task )
168
171
app .on_startup .append (start_payment_monitoring_task )
169
172
app .on_cleanup .append (stop_watch_for_messages_task )
You can’t perform that action at this time.
0 commit comments