julep-ai / julep

A new DSL and server for AI agents and multi-step tasks
https://julep.ai
Apache License 2.0
2.67k stars 904 forks source link

fix(agents-api): Fix retrying the `resource busy` errors #834

Closed HamadaSalhab closed 2 weeks ago

HamadaSalhab commented 2 weeks ago

When a retry-decorated function finishes the maximum amount of retries and still throws an error, tenacity throws an error with type RetryError, so I added that to the list of retryable errors


[!IMPORTANT] Added RetryError to RETRYABLE_ERROR_TYPES in tasks.py to handle exhausted retry cases.

  • Error Handling:
    • Added RetryError to RETRYABLE_ERROR_TYPES in tasks.py to handle cases where a retry-decorated function exhausts retries and throws this error.

This description was created by Ellipsis for d20007767bd9cce0f0bcaa8c7c6312bf33efcfda. It will automatically update as commits are pushed.