-
Notifications
You must be signed in to change notification settings - Fork 904
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
fix(agents-api): Fix Error-Retrying Mechanism #760
Conversation
Hey @HamadaSalhab, here are examples of how you can ask me to improve this pull request: @Sweep Fix the CI errors. @Sweep Add unit tests for `is_retryable_error` function in `tasks.py` that cover: 📖 For more information on how to use Sweep, please read our documentation. |
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 2943e26 in 38 seconds
More details
- Looked at
160
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/common/interceptors.py:83
- Draft comment:
The docstring mentions non-retryable errors, but the logic now checks for retryable errors. Update the docstring to reflect this change. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_06ZrHIjmvHhescVD
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.
Take a look at the failing test: |
@Sweep add funny comments in the files that have been changed |
add funny comments in the files that have been changed Hey, @creatorrr, I finished working on this. Here are the changes I made: 🚀 I've committed these changes to your branch via this PR! #760Search Results
ResponseLet me help you add some funny comments to the changed files and fix the failing test. Based on the PR changes and CI logs, we need to:
Let's make these changes:
|
Important
Fix error-retrying mechanism by updating retryable error logic and interceptors, and adding retry to utility function.
tasks.py
by introducingRETRYABLE_ERROR_TYPES
andRETRYABLE_HTTP_STATUS_CODES
.is_retryable_error()
to returnTrue
for retryable errors and specific HTTP status codes.CustomActivityInterceptor
andCustomWorkflowInterceptor
ininterceptors.py
to useis_retryable_error()
.cozo_query_dec()
inutils.py
usingtenacity
to handleHTTPException
with status code 429.This description was created by for 2943e26. It will automatically update as commits are pushed.