Skip to main content

mark_failure

Method
This is a method of the FailoverManager class in the failover module.
Mark a profile as failed.

Signature

def mark_failure(profile: AuthProfile, error: str, is_rate_limit: bool) -> None

Parameters

profile
AuthProfile
required
The profile that failed
error
str
required
Error message
is_rate_limit
bool
default:"False"
Whether this is a rate limit error

Uses

  • profile.mark_rate_limited
  • logger.warning
  • profile.mark_error
  • get_next_profile
  • callback
  • logger.error

Source

View on GitHub

praisonaiagents/llm/failover.py at line 320