Skip to content

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

Merged
KAJdev merged 1 commit into
mainfrom
zeke/con-2058-flash-20-g-021-sync-sdk-call-inside-async
Nov 12, 2026
Merged

KAJdev merged 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

@KAJdev
KAJdev merged commit cea3c2a into main Nov 12, 2026
9 checks passed
@KAJdev
KAJdev deleted the zeke/con-2058-flash-20-g-021-sync-sdk-call-inside-async branch November 12, 2026 18:50
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