-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with tracing in threadpool executors (#639)
* When using AsyncContextVars + ThreadPoolExecutors, things can get quite hairy. In BAML we treat threadpool executors as top level threads with no prior context (i.e. things like tags and such are reset and must be re-configured) * See: https://kobybass.medium.com/python-contextvars-and-multithreading-faa33dbe953d
- Loading branch information
Showing
4 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
working-directory: engine/baml-schema-wasm | ||
|
||
- name: Install Bindgen | ||
run: cargo install -f [email protected].87 | ||
run: cargo install -f [email protected].92 | ||
working-directory: engine/baml-schema-wasm | ||
|
||
- name: Install Rust | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ cd ../../engine/baml-schema-wasm | |
# cargo install | ||
rustup target add wasm32-unknown-unknown | ||
cargo update -p wasm-bindgen | ||
cargo install -f [email protected].87 | ||
cargo install -f [email protected].92 | ||
|
||
# cargo build | ||
cd ../../typescript/fiddle-frontend | ||
|