Skip to content

Releases: runpod/runpod-python

0.9.12

24 Jun 15:01
ed05fb1
Compare
Choose a tag to compare

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

Full Changelog: 0.9.11...0.9.12

0.9.11

14 Jun 13:54
Compare
Choose a tag to compare

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 and refresh_worker keys

What's Changed

New Contributors

Full Changelog: 0.9.10...0.9.11

0.9.10

30 May 21:56
Compare
Choose a tag to compare

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

25 May 13:26
Compare
Choose a tag to compare

Fix:

  • Timed out Jobs were not being handled gracefully

Full Changelog: 0.9.8...0.9.9

0.9.8

17 May 00:55
Compare
Choose a tag to compare

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

11 May 05:23
Compare
Choose a tag to compare

Full Changelog: 0.9.6...0.9.7

0.9.6

11 May 05:15
Compare
Choose a tag to compare

Full Changelog: 0.9.5...0.9.6

0.9.5

11 May 05:08
Compare
Choose a tag to compare

Full Changelog: 0.9.4...0.9.5

0.9.4

11 May 01:32
Compare
Choose a tag to compare

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 a test_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

20 Apr 18:45
Compare
Choose a tag to compare

Full Changelog: 0.9.2...0.9.3