Skip to content

Commit c06145f

Browse files
committed
release: 1.25.0
1 parent 388c299 commit c06145f

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

sdks/python/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ All notable changes to Hatchet's Python SDK will be documented in this changelog
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.25.0] - 2026-02-17
9+
10+
### Added
11+
12+
- Adds a `CancellationToken` class for coordinating cancellation across async and sync operations. The token provides both `asyncio.Event` and `threading.Event` primitives, and supports registering child workflow run IDs and callbacks.
13+
- Adds a `CancellationReason` enum with structured reasons for cancellation (`user_requested`, `timeout`, `parent_cancelled`, `workflow_cancelled`, `token_cancelled`).
14+
- Adds a `CancelledError` exception (inherits from `BaseException`, mirroring `asyncio.CancelledError`) for sync code paths.
15+
- Adds `cancellation_grace_period` and `cancellation_warning_threshold` configuration options to `ClientConfig` for controlling cancellation timing behavior.
16+
- Adds `await_with_cancellation` and `race_against_token` utility functions for racing awaitables against cancellation tokens.
17+
- The `Context` now exposes a `cancellation_token` property, allowing tasks to observe and react to cancellation signals directly.
18+
19+
### Changed
20+
21+
- The `Context.exit_flag` is now backed by a `CancellationToken` instead of a plain boolean. The property is maintained for backwards compatibility.
22+
- Durable context `aio_wait_for` now respects the cancellation token, raising `asyncio.CancelledError` if the task is cancelled while waiting.
23+
824
## [1.24.0] - 2026-02-13
925

1026
### Added

sdks/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hatchet-sdk"
3-
version = "1.24.0"
3+
version = "1.25.0"
44
description = "This is the official Python SDK for Hatchet, a distributed, fault-tolerant task queue. The SDK allows you to easily integrate Hatchet's task scheduling and workflow orchestration capabilities into your Python applications."
55
authors = [
66
"Alexander Belanger <alexander@hatchet.run>",

0 commit comments

Comments
 (0)