Releases: runpod/runpod-python
Releases · runpod/runpod-python
0.9.12
Updates
Error Handling
- Job returns are filtered to match the type dictionary before looking for the
error
key. This will prevent false positives from matching the term "error" in a returned body. - Exceptions raised by the handler now include additional information, including the hostname and pod id. The formatting has also been improved.
- An explicit exception regarding missing or invalid RunPod API key is now raised when making endpoint calls.
What's Changed
- Handle 401 error for serverless calls by @arsenyinfo in #38
- Add informative error message when API key not provided by @LukeWood in #39
New Contributors
- @arsenyinfo made their first contribution in #38
- @LukeWood made their first contribution in #39
Full Changelog: 0.9.11...0.9.12
0.9.11
New Features
Job Streaming with Generator
- If your handler contains
yield
it will be treated as a generator and can stream the results.
Updates
- GitHub action requirement version updates.
Refactors
Logging
- Altered many log levels from info to debug. This is in preparation for RunPod persistent logging release.
- Reformatted logs to help identify job associations.
Bug Fix
- Checks if the handler result is a dict before looking for
error
andrefresh_worker
keys
What's Changed
- More Informative Errors by @lapp0 in #26
- Feature/new api by @SkullMag in #30
- updating branch by @justinmerrell in #32
- Version updates by @justinmerrell in #33
- Streaming job support with generators by @winglian in #28
- add ExtraArgs support for upload_file_to_bucket by @slep0v in #29
New Contributors
- @lapp0 made their first contribution in #26
- @winglian made their first contribution in #28
- @slep0v made their first contribution in #29
Full Changelog: 0.9.10...0.9.11
0.9.10
New Features
Debugger Utility
- We've introduced a new Debugger Utility that allows you to set timing checkpoints in your code. This functionality can help you identify bottlenecks and optimize your application more effectively. Debugger Docs
Improvements
rp_downloader
- Performance enhancement: rp_downloader now supports streaming downloads with chunking. This update results in faster, more efficient file downloads.
Dependency Updates
- We have updated the versions of various dependencies to ensure optimal performance and compatibility. Please take a look at the updated requirements file for the specific changes.
Bug Fixes
Heartbeat Thread Management
- We have addressed an issue concerning the management of heartbeat or ping threads. The fix improves the stability of the module and reduces the likelihood of encountering threading errors.
Full Changelog: 0.9.9...0.9.10
0.9.9
0.9.8
Logging
- Bug fix where no info was printed if
RUNPOD_DEBUG_LEVEL
was not explicitly set
Testing
- Better arg parsing allows users to use their arg parser for the main code.
Full Changelog: 0.9.7...0.9.8
0.9.7
Full Changelog: 0.9.6...0.9.7
0.9.6
Full Changelog: 0.9.5...0.9.6
0.9.5
Full Changelog: 0.9.4...0.9.5
0.9.4
rp_validator
- Refactored code
- Improved error handling
- Additional check for type enforcement
Worker Testing
- Test inputs can now be passed in by calling the file containing your handler with the arg
--test_input
or providing atest_input
key as part of the start worker config. - Non-Zero exit code is raised if an error is returned when performing local tests (good for CI/CD)
Docs
- Real-time information added to the docs.
Full Changelog: 0.9.3...0.9.4
0.9.3
Full Changelog: 0.9.2...0.9.3