Repository navigation
Notable Changes
Added
-
Workflows can inspect cancellation causes with
workflow.Causeand cancel local contexts withworkflow.WithCancelCause. Reasons supplied throughclient.CancelWorkflowWithOptionsor the newworkflow.RequestCancelExternalWorkflowWithOptionsare available as cancellation causes inside the target workflow.Context.Err()continues to returnworkflow.ErrCanceled. External- and child-workflow cancellation requests inherit the context's cause when no nonempty reason is supplied. -
internalbindings.WorkflowEnvironmentexposesGetCancellationReasonand reason parameters on child- and external-workflow cancellation requests for SDKs built on top of the Go SDK. -
Experimental:
converter.StorageDriverStoreContextandconverter.StorageDriverSelectContexthave aNamespacefield holding the namespace of the client or worker performing the operation, so drivers and selectors can partition by namespace even when there is noTarget. -
Experimental: Added
worker.GetInfo, which returns a snapshot of a worker's state, currently its task slot usage.
Changed
-
Reduced gRPC interceptor allocations when the effective metrics handler is a no-op.
-
converter.NewZlibCodecreuses zlib writers and readers across payloads instead of creating them for every payload. A writer is about 1 MB of allocation, so encoding allocates far less, which reduces garbage collection in workers that encode many payloads. The encoded output is unchanged. -
Removed an allocation when resolving workflow and activity function names.
-
Reduced allocations when converting batches of values to payloads.
Fixed
-
Retry transient Temporal CLI download failures when starting a dev server with
testsuite.StartDevServer. -
Marked
workflow.SignalWithStartas experimental. -
client.Options.SdkNameandclient.Options.SdkVersionnow also apply to the SDK metadata of workflow task completions, not only to worker heartbeats. -
Workers no longer advertise a worker control task queue unless worker heartbeats and commands are supported and the shared namespace command poller is running.
-
Workers let the server complete outstanding worker-command polls on namespaces that support graceful poll shutdown.
-
Fixed session-worker updates overwriting ordinary activity-worker gauges and distorting worker heartbeats. Session metrics are exported under the task queues they poll, and the activity heartbeat reports only the ordinary activity worker.
What's Changed
- feat(lambdaworker): Support Temporal creds config via Secrets Manager by @johanngan in #2774
- Only advertise the worker control queue when polling by @Sushisource in #2869
- Prepare contrib/aws/lambdaworker release 0.2.0 by @johanngan in #2871
- Fix contrib/aws/lambdaworker release 0.2.0 date by @johanngan in #2877
- Provide the namespace to external storage drivers by @jmaeagle99 in #2878
- Add experimental worker.GetInfo by @johanngan in #2858
- Prepare release 2026-11-16 by @dplyukhin in #2884
- Reuse zlib writers and readers in NewZlibCodec by @sethlurietfg in #2892
- Fix internal worker shutdown cancellation bug by @yuandrew in #2907
- Update nexus-rpc/sdk-go to v0.8.0 by @long-nt-tran in #2913
- Start update ordering test workers only once by @yuandrew in #2922
- fix: apply SdkName/SdkVersion overrides to workflow task SDK metadata by @xepozz in #2873
- Skip gRPC metrics work for the no-op handler by @yuandrew in #2898
- Document otlpworker resource schema fix by @dplyukhin in #2885
- fix: mark workflow.SignalWithStart as experimental by @dplyukhin in #2920
- Label incoming issues with repository name by @tconley1428 in #2881
- feat(publisher): rewrite release automation tool to support batch-release by @dplyukhin in #2778
- Re-enable the Nexus workflow update integration test by @Aric3 in #2921
- Avoid allocating when resolving function names by @yuandrew in #2900
- Preallocate payload slices for batch conversion by @yuandrew in #2899
- Remove unused variable in internal workflow testsuite by @Ozoniuss in #2821
- Expose workflow cancellation causes and reasons by @Quinn-With-Two-Ns in #2851
- Skip Nexus update workflow test on Cloud by @yuandrew in #2929
- Isolate session worker metrics and heartbeats by @yuandrew in #2926
- Retry Temporal CLI downloads by @yuandrew in #2928
- Bump go.opentelemetry.io/otel/sdk from 1.45.0 to 1.47.0 in /contrib/gcp/cloudrun/otel by @dependabot[bot] in #2886
- Prepare SDK release 2026-11-24 by @dplyukhin in #2934
New Contributors
- @sethlurietfg made their first contribution in #2892
- @long-nt-tran made their first contribution in #2913
- @Aric3 made their first contribution in #2921
Full Changelog: v1.51.0...v1.52.0