runpod / runpod-python

🐍 | Python library for RunPod API and serverless worker SDK.
https://pypi.org/project/runpod/
MIT License
174 stars 63 forks source link

Autoreload in local api mode #316

Open elthariel opened 4 months ago

elthariel commented 4 months ago

Is your feature request related to a problem? Please describe. When working locally on an endpoint in API mode (--rp_serve_api), you have to kill and restart the server constantly to have you code changes taked into account. There should be an automated reload mode, which is luckily supported by Uvicorn.

Describe the solution you'd like

--rp-serve-reload that would trigger reload=True in start_uvicorn

ashleykleynhans commented 4 months ago

I like this idea. You can create a PR to add it, RunPod are open to accepting PRs to their repos.