Skip to content

fix: allow calling async tasks from threaded tasks#1029

Merged
maartenbreddels merged 1 commit intomasterfrom
fix_run_async_task_from_threaded
Apr 14, 2025
Merged

fix: allow calling async tasks from threaded tasks#1029
maartenbreddels merged 1 commit intomasterfrom
fix_run_async_task_from_threaded

Conversation

@maartenbreddels
Copy link
Copy Markdown
Contributor

Instead of assuming an event loop to exist, we use the event loop of the main thread in solara server (the one that starlette created for the websocket).
In the case of IPython/Jupyter, we use the main event loop.

Instead of assuming an event loop to exist, we use the event loop
of the main thread in solara server (the one that starlette created
for the websocket).
In the case of IPython/Jupyter, we use the main event loop.
@maartenbreddels maartenbreddels force-pushed the fix_run_async_task_from_threaded branch from 9ae65ae to 304f10e Compare April 14, 2025 09:43
@maartenbreddels maartenbreddels temporarily deployed to fix_run_async_task_from_threaded - solara-stable PR #1029 April 14, 2025 09:43 — with Render Destroyed
@maartenbreddels maartenbreddels merged commit 3d5ead1 into master Apr 14, 2025
106 of 110 checks passed
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.

1 participant