Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support async lambda and udf #2239

Merged
merged 2 commits into from
Dec 11, 2023
Merged

feat: Support async lambda and udf #2239

merged 2 commits into from
Dec 11, 2023

Conversation

chubei
Copy link
Contributor

@chubei chubei commented Nov 27, 2023

It turns out when we do async things in JavaScript, Deno spawns futures to the tokio runtime that it runs in, and it always assumes that all futures run in the same thread.

As a result, we must use a separate tokio runtime for running JavaScript code, otherwise futures get scheduled to other threads and code panics or segfault.

Depends on #2230

@chubei chubei requested a review from Jesse-Bakker November 27, 2023 05:49
@chubei chubei enabled auto-merge December 11, 2023 09:58
@chubei chubei added this pull request to the merge queue Dec 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2023
@chubei chubei added this pull request to the merge queue Dec 11, 2023
Merged via the queue into getdozer:main with commit 9c376c6 Dec 11, 2023
5 checks passed
@chubei chubei deleted the feat/async_lambda branch December 11, 2023 10:27
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