remove creation of non-used asyncio_loop (#9284)

This commit is contained in:
Alexander Piskun
2025-08-11 23:48:17 +03:00
committed by GitHub
parent 966f3a5206
commit fa340add55

View File

@@ -646,8 +646,6 @@ class PromptExecutor:
self.add_message("execution_error", mes, broadcast=False)
def execute(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):
asyncio_loop = asyncio.new_event_loop()
asyncio.set_event_loop(asyncio_loop)
asyncio.run(self.execute_async(prompt, prompt_id, extra_data, execute_outputs))
async def execute_async(self, prompt, prompt_id, extra_data={}, execute_outputs=[]):