Python SDK 1.33.7
Overview
Added
- Added an
individual_run_spans_for_bulk_runOpenTelemetry config option. When enabled, a childhatchet.run_workflowspan is created for each item in a bulk run (run_workflows), nested under the parenthatchet.run_workflowsspan, with each item's traceparent pointing at its own span. Defaults tofalseto preserve the existing span structure.
Fixed
- Fixed a bug where synchronous log calls via
asyncio.to_thread(or other threads) could block workers.
Installation
Install the SDK using pip:
pip install hatchet-sdkOr using poetry:
poetry add hatchet-sdkDocumentation
For detailed documentation, examples, and best practices, visit:
What's Changed?
- docs: AWS S3 processing example (#3840) by @gregfurman
- fix(python-sdk): make async log sender thread-safe (#3958) by @MicroYui
- fix(otel): create per-item run_workflow span in batch run instrumenta… (#3995) by @Mdev303
- fix: Python test timeouts (#4031) by @juliusgeo
- chore(deps): bump the python-deps group across 3 directories with 1 update (#4056) by @app/dependabot
- chore(deps-dev): bump the python-dev-deps group across 1 directory with 7 updates (#4060) by @app/dependabot
- chore(deps-dev): bump types-requests from 2.33.0.20260503 to 2.33.0.20260518 in /sdks/python (#4061) by @app/dependabot
- docs(cookbooks): add trusted agent SDK guides (#4070) by @BloggerBust
- chore(deps): bump aiohttp from 3.13.5 to 3.14.0 in /sdks/python (#4083) by @app/dependabot
- chore(deps): bump starlette from 1.0.0 to 1.0.1 in /sdks/python (#4086) by @app/dependabot
- chore(deps-dev): bump types-psutil from 7.2.2.20260508 to 7.2.2.20260518 in /sdks/python (#4096) by @app/dependabot
- chore(deps-dev): bump the python-deps group across 1 directory with 4 updates (#4102) by @app/dependabot
- chore(deps-dev): bump boto3 from 1.43.19 to 1.43.24 in /sdks/python in the python-deps group (#4114) by @app/dependabot
- fix: Update Python SDK proto files (#4133) by @juliusgeo