From 2bfabb944df21cf73067166c97627c8dacbb1c5b Mon Sep 17 00:00:00 2001 From: Bob Haddleton Date: Wed, 23 Sep 2026 12:41:39 -0500 Subject: [PATCH] Set the new event loop Signed-off-by: Bob Haddleton --- crossplane/function/runtime.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crossplane/function/runtime.py b/crossplane/function/runtime.py index a6e465e..827460a 100644 --- a/crossplane/function/runtime.py +++ b/crossplane/function/runtime.py @@ -99,6 +99,7 @@ def serve( loop = asyncio.get_event_loop() except RuntimeError: loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) server = grpc.aio.server(options=options)