-
Notifications
You must be signed in to change notification settings - Fork 167
Enables Hamilton to install under WASM #1277
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
Conversation
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.
❌ Changes requested. Reviewed everything up to 4bc1bd2 in 1 minute and 47 seconds
More details
- Looked at
20lines of code in1files - Skipped
0files when reviewing. - Skipped posting
3drafted comments based on config settings.
1. hamilton/execution/executors.py:7
- Draft comment:
Consider adding an inline comment explaining why ProcessPoolExecutor is set to None for WASM. This improves clarity for future maintainers. - Reason this comment was not posted:
Marked as duplicate.
2. hamilton/execution/executors.py:10
- Draft comment:
ProcessPoolExecutor is set to None in WASM, but MultiProcessingExecutor later uses it directly. Consider adding a safeguard in MultiProcessingExecutor (or a clear error message) to handle the case where ProcessPoolExecutor is None. - Reason this comment was not posted:
Marked as duplicate.
3. hamilton/execution/executors.py:7
- Draft comment:
Add a comment here explaining that on WASM environments (emscripten, wasi) the ProcessPoolExecutor is disabled due to lack of support. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_cNwJ4ePYMA77ad2i
Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
Seeing if this enables try hamilton to run the latest hamilton code.
this seems to work, but then it doesnt...
We don't want to import this in a WASM env. So we gate it now.
We don't want this in general Hamilton.
4bc1bd2 to
1b27a33
Compare
elijahbenizzy
left a comment
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.
Could have tests but I'm not worried for this change
Enables Hamilton to be installed in a WASM environment.
This just special cases the environment and doesn't import process pool executor
which isn't available in a WASM env.
Changes
How I tested this
Notes
Checklist