services.backoff_state module
Persistent GitHub backoff state management.
Backoff is a global switch to reduce GitHub API traffic when nearing rate limits or during maintenance. State is persisted in the DB so it survives restarts, with an in-memory cache for fast reads.
- class services.backoff_state.BackoffInfo(enabled, reason='', updated_at=datetime.datetime(2026, 4, 3, 21, 41, 16, 872708, tzinfo=datetime.timezone.utc), expires_at=None)[מקור]
Bases:
object
- class services.backoff_state.BackoffState[מקור]
Bases:
objectBackoff state persisted in DB with memory cache.