Skip to content

fix(apps): allow sync SDK calls in async entrypoints - #720

Open
KAJdev wants to merge 1 commit into
mainfrom
zeke/con-2058-flash-20-g-021-sync-sdk-call-inside-async
Open

KAJdev wants to merge 1 commit into
mainfrom
zeke/con-2058-flash-20-g-021-sync-sdk-call-inside-async

Conversation

@KAJdev

@KAJdev KAJdev commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Calling queue.remote(...), queue.spawn(...), or api.get("/health") inside an async @runpod.local_entrypoint could hang indefinitely, leaving rp flash dev --once waiting forever.

Async entrypoints run on their own event loop, so synchronous SDK calls can complete on the SDK background loop and return their results. You can mix these calls with await queue.remote.aio(...) in the same entrypoint. The entrypoint loop closes when the function finishes, including when it raises an exception.

Fixes CON-2058

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants