Skip to content

Feature/merge prs#44

Merged
vinaayakh-aot merged 30 commits into
AOT-Technologies:mainfrom
vinaayakh-aot:feature/merge-prs
May 14, 2026
Merged

Feature/merge prs#44
vinaayakh-aot merged 30 commits into
AOT-Technologies:mainfrom
vinaayakh-aot:feature/merge-prs

Conversation

@vinaayakh-aot

Copy link
Copy Markdown
Collaborator

Merge PRs and resolved conflicts for.
#37
#25
#24
#21
#20
#16



def _resolve_breaker(
breaker: CircuitBreaker | Callable[[], CircuitBreaker],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identified an issue in _resolve_breaker where pybreaker.CircuitBreaker instances were incorrectly treated as callable factory functions since CircuitBreaker objects are themselves callable. This caused the breaker instance to be replaced with a wrapper function, leading to 'function' object has no attribute 'state' errors during resilience checks.

Fix :
def _resolve_breaker(
breaker: CircuitBreaker | Callable[[], CircuitBreaker],
) -> CircuitBreaker:
if isinstance(breaker, CircuitBreaker):
return breaker
return breaker() if callable(breaker) else breaker

reported by - @kesav-aot

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

@vinaayakh-aot vinaayakh-aot merged commit 65ecd72 into AOT-Technologies:main May 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants