-
Notifications
You must be signed in to change notification settings - Fork 4
Use standard thread library #580
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1ce72a5
Use standard thread library
jan-janssen 42dc067
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c021ba3
Update shared.py
jan-janssen 81e0bbc
Update executor.py
jan-janssen 7353ef5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 01bd741
clean up
jan-janssen a5fc401
fixes
jan-janssen d30c7a2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 846ec5b
ignore type warnings
jan-janssen 9ed7562
Merge remote-tracking branch 'origin/standard_thread' into standard_t…
jan-janssen 3203223
more test fixes
jan-janssen 3e463da
another fix
jan-janssen 1eec23c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1af9f30
more fixes
jan-janssen 21dd5cc
Merge remote-tracking branch 'origin/standard_thread' into standard_t…
jan-janssen 1b0badf
try to fix old version
jan-janssen 2da722e
Fix python 3.10 issue
jan-janssen d4afda7
Merge branch 'main' into standard_thread
jan-janssen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify exception handling behavior with standard Thread.
The switch from
RaisingThread
to standardThread
might affect how exceptions are propagated from worker threads to the main thread. The standardThread
class doesn't automatically propagate exceptions to the main thread.🏁 Script executed:
Length of output: 11463
🏁 Script executed:
Length of output: 477
Attention: Inconsistent Thread Type References May Affect Exception Propagation
The update in
executorlib/base/executor.py
correctly changes the_process
annotation to use the standardThread
. However, several parts of the codebase still referenceRaisingThread
(e.g., docstrings and method signatures inexecutorlib/base/executor.py
andexecutorlib/interactive/shared.py
). This inconsistency could lead to confusion regarding exception propagation—since the standardThread
does not automatically propagate exceptions to the main thread asRaisingThread
might have.Thread
is explicitly managed if propagating errors is required.RaisingThread
toThread
(or alternatively, reintroduceRaisingThread
functionality where needed) for consistency.