0.10.0
New Features
Test API Server
- We introduced the ability to quickly deploy a locally hosted API server with your worker code. This is accomplished by calling your handler file with the
--rp_api_serveargument. This allows for faster, more flexible testing environments. Check out our blog post for an example.
Log Level
- For better control over logging, we now allow setting the log level by calling your handler with the
--rp_log_levelset to the desired level. If this argument is present, it will override theRUNPOD_DEBUG_LEVEL.
Updates
Logger
- We've made significant improvements to our logger for better clarity and control:
logger.pyhas been refactored and renamed torp_logger.pyfor consistency.- Logging level is defaulted to
DEBUGby default. Note that when your worker runs on RunPod we set it toERRORunless otherwise set. - Breaking Change:
RUNPOD_DEBUGno longer controls whether or not logs are printed. To prevent all logs from printing, setRUNPOD_DEBUG_LEVELto 0 or call your handler file with the argument--rp_log_level="NOTSET"
RunPod API Python Language Library
- We've added more options for creating Pods:
- You can now specify
data_center_idandcountry_codewhen creating Pods, allowing for more precise control over pod creation.
- You can now specify
What's Changed
- feat: pass data_center_id to create_pod by @shibanovp in #40
- feat: add country_code to create_pod by @shibanovp in #42
- Logger Update by @justinmerrell in #43
- updating branch by @justinmerrell in #44
- API Server For Local Testing by @justinmerrell in #45
New Contributors
- @shibanovp made their first contribution in #40
Full Changelog: 0.9.12...0.10.0