You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploy this code in RunPod (serverless environment) using docker.
Trigger the handler with a test input payload.
The warning coroutine 'handler' was never awaited appears in the logs.
The handler does not execute as expected.
Python Version: 3.11
Runpod latest
Image built for --platform linux/amd64
I've also tried to trigger the handling function inside my handler using
asyncio.create_task
and this leads to me able to send requests and it works, however at this line of code, where I send multiple requests to an API as chunks, a asyncio.CancelError Exception gets thrown and the code exists with code 0
RunPod claims to support async handlers; however, when I define my handler function as async def, I receive the following warning
RuntimeWarning: coroutine 'handler' was never awaited
This suggests that RunPod is not properly awaiting the async handler, causing it to fail during execution.
Steps to reproduce the behavior:
The warning coroutine 'handler' was never awaited appears in the logs.
The handler does not execute as expected.
I've also tried to trigger the handling function inside my handler using
and this leads to me able to send requests and it works, however at this line of code, where I send multiple requests to an API as chunks, a asyncio.CancelError Exception gets thrown and the code exists with code 0
I think the event loop from runpod doesn't allow such a behavior?
If I could define the handler function as async, the problem would not appear!
The text was updated successfully, but these errors were encountered: