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

refactor(core): enhance cancel_abort logic with return value and retr… #1105

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

sinkingsugar
Copy link
Member

…y handling

The commit modifies the shards_cancel_abort function to return a boolean indicating whether the abort was successfully canceled. This change is propagated to the Rust bindings and used in HTTP request retry logic to handle cases where the wire might have been aborted, preventing unnecessary retries.

…y handling

The commit modifies the `shards_cancel_abort` function to return a boolean indicating whether the abort was successfully canceled. This change is propagated to the Rust bindings and used in HTTP request retry logic to handle cases where the wire might have been aborted, preventing unnecessary retries.
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 80.98%. Comparing base (e16ac95) to head (ed08e67).
Report is 3 commits behind head on devel.

Files with missing lines Patch % Lines
shards/core/runtime.cpp 0.00% 4 Missing ⚠️
shards/modules/core/wires.hpp 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #1105      +/-   ##
==========================================
- Coverage   80.99%   80.98%   -0.02%     
==========================================
  Files         359      359              
  Lines       62422    62426       +4     
==========================================
- Hits        50561    50557       -4     
- Misses      11861    11869       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Replace assertions with runtime error throws in BaseRunner::compose and BaseRunner::warmup to handle missing wire cases more gracefully. This ensures better error handling and debugging information when the wire is not set.
@sinkingsugar sinkingsugar merged commit 3db1e3f into devel Jan 15, 2025
20 of 21 checks passed
@sinkingsugar sinkingsugar deleted the gio/daily branch January 15, 2025 08:00
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.

1 participant