Skip to content

Commit 26cec32

Browse files
committed
revert to asyncio.get_event_loop().run_until_complete(outputs)
Signed-off-by: Niels Bantilan <[email protected]>
1 parent 374cd9f commit 26cec32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flytekit/bin/entrypoint.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ def _dispatch_execute(
107107
if inspect.iscoroutine(outputs):
108108
# Handle eager-mode (async) tasks
109109
logger.info("Output is a coroutine")
110-
with asyncio.Runner() as runner:
111-
outputs = runner.run(outputs)
110+
outputs = asyncio.get_event_loop().run_until_complete(outputs)
112111

113112
# Step3a
114113
if isinstance(outputs, VoidPromise):

0 commit comments

Comments
 (0)