Bindu icon indicating copy to clipboard operation
Bindu copied to clipboard

[REFACTOR] Duplicated Retry Decorator Logic

Open Aditya8369 opened this issue 9 months ago • 2 comments

Location: bindu/utils/retry.py

Problem: Four nearly identical decorator functions (retry_worker_operation, retry_storage_operation, retry_scheduler_operation, retry_api_call) repeat the same pattern with only different default values. This violates DRY principles.

Aditya8369 avatar Feb 26 '26 13:02 Aditya8369

@Aditya8369 Hi! I'd like to work on this issue. I've gone through the retry.py file and understand the problem — the four decorator functions can be consolidated into a single generic retry decorator with configurable defaults, keeping the existing named wrappers as thin callthrough functions to maintain backward compatibility.

Could I get this assigned to me? I'll have a draft PR up shortly.

anushkapunekar avatar Mar 04 '26 11:03 anushkapunekar

its merged.

raahulrahl avatar Mar 06 '26 11:03 raahulrahl