• Stefy Lanza (nextime / spora )'s avatar
    Manual disable/enable provider button (persistent across reboot) + cooldown recovery · 1d726a93
    Stefy Lanza (nextime / spora ) authored
    Adds a per-provider Disable/Enable button to the rotations page for both admin
    and users, exposing a manual disable that — unlike the failure cooldown — never
    auto-expires and persists across reboots.
    
    - providers/base.py: manual_disable()/manual_enable()/is_manually_disabled();
      manual disable takes precedence in is_rate_limited(); manual_enable() also
      clears any cooldown and resets the failure budget. Source of truth is the
      database (mirrored to cache as a fast path) so state survives restarts and
      cache flushes. Also: when a failure cooldown elapses, the provider is
      reactivated with a fresh failure budget instead of a hair-trigger.
    - database.py: dedicated provider_manual_disabled table (+migration) and
      get/set/clear helpers, user-scoped so a user's toggle never affects others.
    - dashboard: manual-disable / manual-enable / bulk manual-status endpoints; the
      rotations pages render and toggle the button state.
    
    Bump to 0.99.73.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    1d726a93
Name
Last commit
Last update
..
admin_market.html Loading commit data...
admin_payment_settings.html Loading commit data...
admin_tier_form.html Loading commit data...
admin_tiers.html Loading commit data...
analytics.html Loading commit data...
autoselect.html Loading commit data...
billing.html Loading commit data...
cache_settings.html Loading commit data...
change_email.html Loading commit data...
change_password.html Loading commit data...
delete_account.html Loading commit data...
docs.html Loading commit data...
edit_config.html Loading commit data...
error.html Loading commit data...
forgot_password.html Loading commit data...
index.html Loading commit data...
login.html Loading commit data...
market.html Loading commit data...
paypal_connect.html Loading commit data...
pricing.html Loading commit data...
profile.html Loading commit data...
prompt_analytics.html Loading commit data...
prompts.html Loading commit data...
provider_quotas.html Loading commit data...
providers.html Loading commit data...
rate_limits.html Loading commit data...
reset_password.html Loading commit data...
response_cache.html Loading commit data...
rotations.html Loading commit data...
settings.html Loading commit data...
signup.html Loading commit data...
studio.html Loading commit data...
subscription.html Loading commit data...
traffic_visits.html Loading commit data...
usage.html Loading commit data...
user_autoselects.html Loading commit data...
user_index.html Loading commit data...
user_providers.html Loading commit data...
user_rotations.html Loading commit data...
user_tokens.html Loading commit data...
users.html Loading commit data...
verify.html Loading commit data...
wallet.html Loading commit data...