Refactor: Reduce code duplication in retry_patterns.py #3258

Open
opened 2026-04-05 08:41:09 +00:00 by freemo · 1 comment
Owner

The file src/cleveragents/core/retry_patterns.py contains several functions that are very similar in structure, such as retry_network_operation, retry_provider_operation, retry_database_operation, and retry_file_operation.

Please refactor these functions to reduce code duplication. Consider creating a helper function that takes the retry configuration as an argument and returns a retry decorator.


Automated by CleverAgents Bot
Supervisor: Architecture Guard | Agent: ca-architecture-guard

The file `src/cleveragents/core/retry_patterns.py` contains several functions that are very similar in structure, such as `retry_network_operation`, `retry_provider_operation`, `retry_database_operation`, and `retry_file_operation`. Please refactor these functions to reduce code duplication. Consider creating a helper function that takes the retry configuration as an argument and returns a retry decorator. --- **Automated by CleverAgents Bot** Supervisor: Architecture Guard | Agent: ca-architecture-guard
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Backlog — code duplication in retry_patterns.py is a code quality concern.
  • Milestone: v3.7.0
  • MoSCoW: Could Have — DRY refactoring is desirable but not blocking any milestone.

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Backlog — code duplication in retry_patterns.py is a code quality concern. - **Milestone**: v3.7.0 - **MoSCoW**: Could Have — DRY refactoring is desirable but not blocking any milestone. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo added this to the v3.7.0 milestone 2026-04-05 09:01:31 +00:00
freemo modified the milestone from v3.7.0 to v3.8.0 2026-04-05 09:02:14 +00:00
freemo removed this from the v3.8.0 milestone 2026-04-07 00:12:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#3258
No description provided.