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

Retry 装饰器中添加基于异常消息的重试机制 #3

Open
2018-11-27 opened this issue Jul 15, 2024 · 1 comment
Open

Retry 装饰器中添加基于异常消息的重试机制 #3

2018-11-27 opened this issue Jul 15, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@2018-11-27
Copy link
Member

No description provided.

@2018-11-27 2018-11-27 added the good first issue Good for newcomers label Jul 15, 2024
@2018-11-27 2018-11-27 self-assigned this Jul 15, 2024
2018-11-27 added a commit that referenced this issue Jul 15, 2024
1.This update mainly focuses on extensive functional enhancements and optimizations to the `Retry` decorator.
2.The `Retry` decorator now subtracts the runtime of the program from the interval time before each retry.
3.The `Retry` decorator by removing the type conversion for parameters `count` and `sleep`.
4.The `Retry` decorator adds a retry mechanism based on total execution time. #1
5.The `Retry` decorator adds a retry mechanism based on external event. #2
6.The `Retry` decorator Adds a retry mechanism based on exception message. #3
7.Completely remove the deprecated decorators `TryExceptAsync` and `RetryAsync`.
8.Add more detailed descriptions of internal exceptions.
9.Refactor module descriptions and update the readme file.

1.此次更新主要对 `Retry` 装饰器进行了大量的功能增强和优化改动。
2.`Retry` 装饰器现在会在每次重试时,从间隔时间中减去程序的运行时间。
3.`Retry` 装饰器中移除对参数 `count` 和 `sleep` 的类型转换,若类型错误将直接抛出异常。
4.`Retry` 装饰器中添加基于总执行时间的重试机制。 #1
5.`Retry` 装饰器中添加基于外部条件(或事件)的重试机制。 #2
6.`Retry` 装饰器中添加基于异常消息的重试机制。 #3
7.彻底移除已弃用的装饰器 `TryExceptAsync` 和 `RetryAsync`。
8.增加更详细的内部异常描述。
9.重构模块描述,更新自述文件,确保准确反映当前功能和用途。
@2018-11-27
Copy link
Member Author

已添加 be710be,版本 4.0

@2018-11-27 2018-11-27 added enhancement New feature or request and removed good first issue Good for newcomers labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant