-
Notifications
You must be signed in to change notification settings - Fork 16
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] run func timeout use std::time::Duration #76
Conversation
Signed-off-by: csh <[email protected]>
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR. Overall, the pull request introduces several changes related to handling timeouts and asynchronous operations. The changes include replacing the The potential problems in the code include handling errors when calculating the timeout duration, assuming the timeout value is already in seconds and casting it to Additionally, the pull request includes updates to the API documentation and introduces a new In conclusion, the pull request addresses timeout handling and asynchronous operations, but it lacks necessary error handling, validation, and documentation to ensure the reliability and understandability of the code. DetailsCommit 1b0bf586540c17e79fc96a07562ab9fb10bdae40Key changes in this PR:
Other changes include updating the code to use the new Potential problems:
Commit df343d91f73b4ed5341e46f9ed085cd101c74662Key changes:
Potential problems:
Overall, the changes seem to be focused on adding support for asynchronous operations and updating the API documentation. However, more information is needed to fully understand the changes and their implications. |
@@ -115,15 +115,15 @@ impl<'a> TimeoutFiberFuture<'a> { | |||
/// | |||
/// * `func` - The function to execute. | |||
/// | |||
/// * `timeout_sec` - The maximum execution time in seconds for the function instance. | |||
/// * `deadline` - The deadline the function instance. |
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.
Please refine the description for the deadline
argument. Thanks a lot!
Signed-off-by: csh <[email protected]>
…un_func_async_with_timeout` (WasmEdge#76) * [Feat] run func timeout use std::time::Duration Signed-off-by: csh <[email protected]> * [Doc]: update api docs Signed-off-by: csh <[email protected]> --------- Signed-off-by: csh <[email protected]> (cherry picked from commit 07e84b7)
…un_func_async_with_timeout` (WasmEdge#76) * [Feat] run func timeout use std::time::Duration Signed-off-by: csh <[email protected]> * [Doc]: update api docs Signed-off-by: csh <[email protected]> --------- Signed-off-by: csh <[email protected]> (cherry picked from commit 07e84b7) Signed-off-by: csh <[email protected]>
* [Refactor] Add #[form] for subtypes of WasmEdgeError. Signed-off-by: csh <[email protected]> * [Refactor] fix memory leak Signed-off-by: csh <[email protected]> * [Fix] Avoid the CPU 100% by tokio-wasi. Signed-off-by: csh <[email protected]> * [Fix] Fix blocking during tokio-wasi TCP connect. Signed-off-by: csh <[email protected]> * [Fix] async-wasi get envs & args Signed-off-by: csh <[email protected]> * [Perf] Optimize the wasi-ctx Signed-off-by: csh <[email protected]> * [Chore] Temporarily disable the serialize feature. Signed-off-by: csh <[email protected]> * [feat] virtual file system Signed-off-by: csh <[email protected]> * [Refactor] update the argument type of `run_func_with_timeout` and `run_func_async_with_timeout` (#76) * [Feat] run func timeout use std::time::Duration Signed-off-by: csh <[email protected]> * [Doc]: update api docs Signed-off-by: csh <[email protected]> --------- Signed-off-by: csh <[email protected]> (cherry picked from commit 07e84b7) Signed-off-by: csh <[email protected]> * [Refactor] delete useless code from validator Signed-off-by: csh <[email protected]> * [Refactor] To pass the clippy Signed-off-by: csh <[email protected]> * Disable timeout in musl libc (#71) Signed-off-by: Jorge Prendes <[email protected]> Signed-off-by: csh <[email protected]> * Disable timeout in musl libc Signed-off-by: csh <[email protected]> * [Doc] update doc Signed-off-by: csh <[email protected]> * [Fix] fix ffi::WasmEdge_String to String Signed-off-by: csh <[email protected]> * [Fix] Fix unit test Signed-off-by: csh <[email protected]> * [Fix] Modify the `WasiModule`. Signed-off-by: csh <[email protected]> * [refactor] Introduce `WasmEdge_FunctionInstanceGetData` to drop host data (#84) * feat(rust-sys): drop host_data in `Function::drop` Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update `drop` of `ImportModule` and `Function` Signed-off-by: Xin Liu <[email protected]> * chore(rust-sdk): update test code Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update `drop` of `ImportModule` and `Function` Signed-off-by: Xin Liu <[email protected]> * refactor(rust-sys): update `ImportModule::drop` Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): remove debug code Signed-off-by: Xin Liu <[email protected]> * chore(rust-sdk): remove debug code Signed-off-by: Xin Liu <[email protected]> * version(rust-sdk): bump to `0.13.0` Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): supress clippy warning Signed-off-by: Xin Liu <[email protected]> * ci(ci-build): update rust version Signed-off-by: Xin Liu <[email protected]> * ci(standalone): update rust version Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update rustdoc Signed-off-by: Xin Liu <[email protected]> * chore(rust-sdk): update rustdoc and `README` Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update dependencies Signed-off-by: Xin Liu <[email protected]> * ci: update to `macos-13` Signed-off-by: Xin Liu <[email protected]> --------- Signed-off-by: Xin Liu <[email protected]> * doc: update `CHANGELOG` (#85) Signed-off-by: Xin Liu <[email protected]> * [Chore] Update build script (#86) * chore(rust-sys): update build script Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update build script Signed-off-by: Xin Liu <[email protected]> --------- Signed-off-by: Xin Liu <[email protected]> * [Fix] Fix sys test Signed-off-by: csh <[email protected]> * Relax the version of `wat` dep (#90) * chore(rust-sdk): update `wat` dep Signed-off-by: Xin Liu <[email protected]> * chore(rust-sdk): update test code Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update test code Signed-off-by: Xin Liu <[email protected]> * version(rust-sys): bump to `0.17.4` Signed-off-by: Xin Liu <[email protected]> * version(rust-sdk): bump to `0.13.1` Signed-off-by: Xin Liu <[email protected]> * doc: update `CHANGELOG` Signed-off-by: Xin Liu <[email protected]> --------- Signed-off-by: Xin Liu <[email protected]> * [CI] skip test_vmbuilder on fedora Signed-off-by: csh <[email protected]> * Fix static build to link agains zstd (#91) Signed-off-by: Jorge Prendes <[email protected]> * Update doc for releasing `v0.13.2` (#93) * ci: update workflows Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update versioning table Signed-off-by: Xin Liu <[email protected]> * chore(rust-sdk): update versioning table Signed-off-by: Xin Liu <[email protected]> * ci(rust-static-lib): fix typo Signed-off-by: Xin Liu <[email protected]> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update rustdoc Signed-off-by: Xin Liu <[email protected]> * version(rust-sdk): bump to `0.13.2` Signed-off-by: Xin Liu <[email protected]> * chore(rust-sdk): update versioning table Signed-off-by: Xin Liu <[email protected]> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <[email protected]> --------- Signed-off-by: Xin Liu <[email protected]> * [Version] Bump `wasmedge-sys` to `v0.17.5` (#94) * version(rust-sys): bump to `0.17.5` Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update versioning table Signed-off-by: Xin Liu <[email protected]> * chore(rust-sys): update dependency Signed-off-by: Xin Liu <[email protected]> * chore(rust-sdk): update versioning table Signed-off-by: Xin Liu <[email protected]> --------- Signed-off-by: Xin Liu <[email protected]> * doc: update `CHANGELOG` (#95) Signed-off-by: Xin Liu <[email protected]> * [CI] Update `rust-static-lib` workflow (#96) * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <[email protected]> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <[email protected]> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <[email protected]> * ci(rust-static-lib): update workflow Signed-off-by: Xin Liu <[email protected]> * ci(rust-static-lib): remove `libboost-all-dev` dep Signed-off-by: Xin Liu <[email protected]> --------- Signed-off-by: Xin Liu <[email protected]> * [Fix] Temporary FuncRef extraction implementation. Signed-off-by: csh <[email protected]> * [CI] fix test wat Signed-off-by: csh <[email protected]> --------- Signed-off-by: csh <[email protected]> Signed-off-by: Jorge Prendes <[email protected]> Signed-off-by: Xin Liu <[email protected]> Co-authored-by: Jorge Prendes <[email protected]> Co-authored-by: Xin Liu <[email protected]>
No description provided.