• Stefy Lanza (nextime / spora )'s avatar
    runpod: a region and a warm-pod schedule per model, spend over the API (v0.2.82) · c6c1017c
    Stefy Lanza (nextime / spora ) authored
    Three gaps, all configurable from the model page:
    
    - data_center pins a model's pods to one RunPod region. Precedence is
      volume > model > account: a pod in another region cannot attach the
      volume, so the volume still decides.
    
    - schedule_enabled/start/end/days/tz gate the WARM FLOOR only. Outside
      the window the floor is 0 and the warm pod is released without waiting
      out idle_timeout_s; a request arriving out of hours still cold-starts
      one, exactly as min_pods=0 always has. An end before the start runs
      overnight and belongs to the day it started on. An incomplete or
      unparseable window is treated as no schedule rather than a floor of
      zero, and an unknown time zone falls back to local, not UTC.
    
    - GET /v1/runpod/spend serves the pods, ledger, caps and schedule status
      to an API key marked admin, so an external monitor can poll spend
      without an admin session. Opt-in per token; an ordinary key gets 403.
    
    pools_schedule_status() reports in_window/next_change/effective_min_pods
    on /admin/api/runpod/stats and on the new endpoint.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    c6c1017c
Name
Last commit
Last update
..
admin Loading commit data...
api Loading commit data...
backends Loading commit data...
broker Loading commit data...
cluster Loading commit data...
compose Loading commit data...
frontproxy Loading commit data...
models Loading commit data...
ocr Loading commit data...
openai Loading commit data...
pydantic Loading commit data...
queue Loading commit data...
tasks Loading commit data...
__init__.py Loading commit data...
cli.py Loading commit data...
config.py Loading commit data...
main.py Loading commit data...
platform_paths.py Loading commit data...
system_app.py Loading commit data...