Skip to content

Commit 696c271

Browse files
committed
python 3.14 raises RuntimeError if there is no current loop
therefore explicitly create a new one
1 parent 87000c2 commit 696c271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/batou/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def deploy(self):
317317
h for h in list(self.environment.hosts.values()) if not h.ignore
318318
][0]
319319

320-
self.loop = asyncio.get_event_loop()
320+
asyncio.set_event_loop(self.loop)
321321
self.taskpool = ThreadPoolExecutor(self.jobs)
322322
self.loop.set_default_executor(self.taskpool)
323323
self._launch_components(reference_node.root_dependencies())

0 commit comments

Comments
 (0)