Skip to content

Releases

v1.12.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 22:40
8c64b06

Notable Changes

Added

  • Added experimental external storage, which stores large payloads outside workflow history through Converters::StorageDrivers set on Converters::DataConverter#external_storage. Includes an Amazon S3 driver in Contrib::Aws::S3Driver. See the README "External Storage" section.
  • Core: Low-level Operator Service calls support namespace soft deletion, restoration, and restore progress queries.
  • Core: Cloud API bindings support v0.27.0, including user group memberships, projects, project-scoped custom roles, and caller rate limit operations.

Changed

  • Core: Workflow task completions and failures set resource_id to workflow:<workflow_id>, on every page of a paginated completion. Activity task completions, failures, cancellations, and heartbeats set it to workflow:<workflow_id>, or activity:<activity_id> for a standalone activity. Worker heartbeats set it to worker:<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.

Fixed

  • Fixed the Workflow.upsert_memo RBI signature so srb tc no longer rejects it with Malformed sig (srb.help/5003).
  • 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 ABANDON cancellation type that later completes, fails, or times out no longer fails workflow tasks with a nondeterminism error.
  • Core: Cancelling a Nexus operation with ABANDON or TRY_CANCEL before it starts now resolves it with a failed ResolveNexusOperationStart carrying a cancelled failure, instead of a ResolveNexusOperation. 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 ABANDON cancellation type later fails or times out. Those late outcomes are now ignored, as late completions of abandoned activities already were.
  • 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 later patched call 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: 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: 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.
  • Core: Slot gauges now reflect the current number of used and available slots after concurrent worker updates.

New Contributors

  • @pcbeingused333 made their first contribution in #689

Full Changelog: v1.11.0...v1.12.0

v1.11.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 21:51
61db6dd

Notable Changes

Added

  • 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.
  • Added experimental envconfig extensions. Pass extensions: to Temporalio::EnvConfig::ClientConfig.load_client_connect_options to let separately packaged extensions read their own config from profile.<name>.ext and environment variables and apply it through client plugins.
  • Added experimental Event Groups support: Workflow.create_event_group, Workflow.with_event_groups, and event_groups: on workflow command APIs. Signal and update handlers get implicit inbound groups.
  • Workflow::Info#original_execution_run_id is the run ID recorded on the workflow execution started event and is preserved across workflow resets.
  • Core: A local activity's ActivityTask.Start has workflow_task (field 21), with the started event id, attempt and start time of the workflow task in which Core dispatched it. workflow_task also has previous_started_event_id, previous_attempt and previous_started_time, which name the run's last completed workflow task, and failed_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 under ext. The C bridge's profile JSON includes them as an ext object, with TOML datetimes as strings.
  • Added dev_server_startup_timeout to Temporalio::Testing::WorkflowEnvironment.start_local and test_server_startup_timeout to Temporalio::Testing::WorkflowEnvironment.start_time_skipping to control server startup timeout.

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.)

💥 Breaking Changes

  • 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.

Fixed

  • 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.
  • 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.
  • Workflow wait conditions are no longer evaluated for queries, or in a workflow task that only delivers updates and rejects all of them.
  • Time search attribute values now keep sub-second precision, and setting one no longer raises NoMethodError when the application has not required time.
  • Dev and test server startup now stops waiting at the configured deadline even if a readiness request stalls. Timeout messages include the last connection failure when available.
  • Core: Workers with large workflow caches avoid unnecessary CPU usage when no workflow tasks are waiting for a cache slot.
  • Core: Downloading an ephemeral dev or test server binary now retries transient HTTP failures, such as a 503 returned while a release is rolling out, with backoff instead of failing on the first attempt.

Security

  • Upgrade Rustls to 0.23.46 to address security vulnerabilities in the native bridge's dependencies.

New Contributors

Full Changelog: v1.10.0...v1.11.0

v1.10.1

Choose a tag to compare

@github-actions github-actions released this 30 Oct 14:28
1ade6dc

Notable Changes

Security

  • Update the bridge's zip dependency to 9.1.3 to address a security vulnerability in zip.

Full Changelog: v1.10.0...v1.10.1

v1.10.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 17:46
fd96978

Notable Changes

Added

  • Added experimental versioning_override: to Workflow.start_child_workflow and Workflow.execute_child_workflow, including VersioningOverride::OneTime, to route children independently of their parent on Temporal Server 1.32.0 or later. Rejected overrides raise Error::ChildWorkflowError with an Error::InvalidVersioningOverrideError cause.
  • Core: The OTLP metrics exporter can export histograms as OpenTelemetry exponential histograms, which Prometheus-compatible backends store as native histograms, when an SDK enables the option, including through the C bridge. It applies to every histogram, including custom ones, and names each series with a suffix, _native by default, so it never shares a name with the fixed-bucket series it replaces. It cannot be combined with histogram bucket overrides. Explicit buckets remain the default.
  • Core: The temporal_activity_execution_failed and temporal_local_activity_execution_failed worker metrics now carry a failure_reason attribute. Each is now split into one time series per reason, which may affect existing dashboards.
  • Core: External workflow signal and cancellation resolution activations now include the typed server failure cause alongside the existing failure.
  • Core: Workflow completion-as-cancelled commands can now carry details for recording on the terminal history event.
  • Core: 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.

Stabilized

  • Priority is no longer marked as experimental.
  • The dev_server_ and test_server_ options of Testing::WorkflowEnvironment.start_local and start_time_skipping are no longer described as unstable.

💥 Breaking Changes

  • Schedule::Policy#catchup_window now defaults to nil. If unspecified the server configured default is used.
  • Core: Replay detects changes to the service or operation of scheduled Nexus operations, reporting nondeterminism while retaining compatibility with histories recorded before these checks.

Fixed

  • The test ActivityEnvironment no longer adds detail_hints to the details it passes to on_heartbeat.
  • Require json < 3 to prevent JSON payload decoding failures with JSON 3.
  • Core: Workers now replay workflows paused before a scheduled task starts, allowing those workflows to make progress after unpause.
  • Core: 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.
  • Core: 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.
  • Core: Workflow poll balancing now lets non-sticky pollers use capacity after sticky pollers reach their configured or autoscaled polling limit.
  • Core: 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. Previously PayloadsTooLarge failures and history fetch failures were re-reported on every attempt.
  • Core: The workflow_task_execution_failed metric is now recorded for every failed workflow task attempt, including attempts whose failure was not sent to the server, and its failure_reason tag distinguishes GrpcMessageTooLarge, PayloadsTooLarge, and RequestTooLarge on every path.
  • Core: 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.
  • Core: The Prometheus exporter now appends _total to counter metric names when an SDK enables the counter suffix option.
  • Core: Update-with-start ExecuteMultiOperation calls 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.
  • Core: An activity failure caused by oversized final heartbeat details is now counted in the temporal_activity_execution_failed metric as failure_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.
  • Core: 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.
  • Core: Workers no longer send worker heartbeats or appear in centralized heartbeat reports before they begin polling.
  • Core: Nexus tasks are now timed out locally even when the server sends a request-timeout header 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 like 1m30s. 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.
  • Core: 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.
  • 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 remain 0 because heartbeat accounting depended on reading labels from backend-owned attributes.
  • Core: Local activities still running when their workflow is evicted or the worker shuts down now always receive a cancellation. Local activities no longer retry ordinary failures or start-to-close timeouts after cancellation has been requested, matching non-local activities. Workflow code no longer observes a spurious local activity cancellation when its run is evicted or completes while the local activity is backing off between retries.
  • Core: Workers no longer panic when evicting a workflow with buffered local activity results. Completed activations' output is recorded before eviction, without recording eviction-induced cancellations.
  • 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.

Security

New Contributors

Full Changelog: v1.9.0...v1.10.0

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 14 Sep 20:53
0680dae

Notable Changes

Changed

  • Standalone Activities are now generally available (GA). (Standalone Activities as Nexus operations
    and Standalone Activities operator commands remain experimental. Operator commands are pause,
    unpause, updateOptions, restoreOriginal.)

💥 Breaking Changes

  • Duplicate keys in update_options are now an error.
  • Renamed the standalone activity static_summary: option on Client#start_activity and
    Client#execute_activity to summary:, and Client::ActivityExecution::Description#static_summary
    to #summary.

Full Changelog: v1.8.0...v1.9.0

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 10 Sep 15:48
9a0156c

Notable Changes

Added

Standalone Activity operator commands

  • Client::ActivityHandle now supports operator commands for standalone activities: #pause,
    #unpause and #update_options.
  • Added opt-in payload fields to Client::ActivityHandle#describe: include_input:,
    include_outcome:, include_heartbeat_details: and include_last_failure:, all default
    false.
  • Add missing description fields: execution_time, start_delay, total_heartbeat_count.

💥 Breaking Changes

  • Description payload fields are now opt-in: input, outcome, heartbeat_details, last_failure.

Fixed

  • Canceling a fiber-executor activity no longer wedges the worker if using a Fiber#transfer based scheduler
    (such as async). The exception is now delivered through the scheduler's fiber_interrupt hook when it
    provides one.

New Contributors

Full Changelog: v1.7.0...v1.8.0

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 20 Aug 14:09
52aefa0

Notable Changes

Added

  • Added Temporalio::Runtime::LoggingOptions#log_format to select compact, pretty, or
    newline-delimited JSON output for Core logs written to the console.
  • Added FailureConverter process_common_attributes: to customize the value sent to the payload converter when
    encoding common failure attributes.
  • Added the Temporalio::Worker max_eager_activity_reservations_per_workflow_task: option to
    configure the number of activity slots reserved for eager execution per workflow task. Values
    must be positive; use disable_eager_activity_execution: true to disable eager execution.

💥 Breaking Changes

  • By default, workers now proactively validate outbound payload/memo sizes before sending: a field
    over the warn threshold is logged
    ([TMPRL1103] at WARN) but still sent, while a task completion over the error limit is failed
    retryably ([TMPRL1103] at ERROR) instead of sent. Previously these reached the server, which
    terminated the workflow or failed the activity non-retryably; failing retryably instead lets a
    corrected workflow or activity be redeployed and recover. Tune warn thresholds via
    Temporalio::Client::Connection::PayloadLimitsOptions (passed as the connection's
    payload_limits:). If you use a proxy between the worker and server that alters the size of
    payloads (e.g. compression, encryption, external storage), it is advised that you disable size
    enforcement by setting disable_payload_error_limit: true on the worker.

Changed

  • User metadata fields (static_summary, static_details, current_details, activity summary, timer
    summary) are no longer marked as experimental.

Fixed

  • Temporalio::Client::WorkflowHandle#result now preserves fiber-local Thread.current[] context
    while fetching workflow history, allowing gRPC interceptors to apply request-scoped RPC options.
  • Temporalio::Client::WorkflowHandle#result no longer returns nil while a workflow is still
    running when a history long poll expires without returning an event.

Added

  • Worker heartbeats now report the SDK runtime and hosting/platform information the first time each
    worker heartbeats successfully. Set Temporalio::Runtime.new(disable_environment_info: true) to
    opt out of environment reporting entirely.

Core updates

  • Bump sdk-core to 8cf682b7

New Contributors

Full Changelog: v1.6.0...v1.7.0

v1.6.0

Choose a tag to compare

@chris-olszewski chris-olszewski released this 16 Jul 16:17
bec167d

What's Changed

Added

  • Exposed Temporalio::Workflow::ContinueAsNewError#backoff_start_interval, to allow the new workflow to start after a delay.
  • Added the experimental Temporalio::Worker patch_activation_callback: option, allowing workers to decide whether a first non-replay Temporalio::Workflow.patched call should activate a patch during rolling deployments.

Experimental FIPS builds

The native extension can now be built with TEMPORALIO_FIPS=1 to use the FIPS-mode
aws-lc-rs TLS backend for gRPC and OTLP metrics. This is opt-in, source-build only.
FIPS builds use SHA-256 rather than MD5 for the default worker build ID and warn when
the Ruby OpenSSL runtime is not itself in FIPS mode.

Experimental RBS and RBI signatures are included in the gem

Released gems now contain RBS signatures in sig/ and Sorbet RBI
signatures in rbi/, including generated types for Temporal API messages and services.
These type signatures are subject to change in future releases as we move towards a stronger typing story.

Changed

gRPC transport compression defaults to gzip

Client connections now use gzip transport compression by default. Pass
grpc_compression: Temporalio::Client::Connection::GrpcCompressionOptions::None.new to
Client.connect or Client::Connection.new to opt out.

Fixed

Workflow.suggest_continue_as_new_reasons returns workflow enum values

Workflow activations containing continue-as-new suggestion reasons previously failed because the
worker tried to call to_i on bridge enum symbols. Continue-as-new suggestion reasons are now
converted from bridge enum symbols to Temporalio::SuggestContinueAsNewReason integer enum values before being exposed to workflows.

Deadlock errors from workflow futures fail the current workflow task

A workflow deadlock raised inside Temporalio::Workflow::Future is no longer deferred until the
future is awaited. The worker fails the current workflow task immediately, preventing commands
created before the deadlock from being recorded as a successful partial command batch.

Scheduler waits for the Protobuf object-cache mutex

The workflow scheduler no longer yields while a workflow fiber is blocked on the
google-protobuf object-cache mutex. This prevents a workflow task from completing with only part
of a command batch when Protobuf serialization blocks.

replay_workflow shutdown after nondeterminism

Fixed a race in replay_workflow where if a NDE was hit, worker shutdown could panic if it happens before async activation completion completes.

Core updates

  • Retried transport-originated gRPC CANCELLED errors, such as a connection closure or GOAWAY,
    using the normal RPC retry policy while continuing not to retry application-initiated
    cancellations.
  • Resource sampling interval for worker heartbeating now matches heartbeat interval rather than every 100ms
  • Activities with a heartbeat timeout shorter than their start-to-close timeout now still enforce
    the start-to-close timeout while heartbeats succeed.
  • Local activity completion after workflow eviction no longer risks a Core panic or dispatching a
    stale local activity.
  • Corrected the worker_task_slots_used gauge so it does not count a slot that is currently being
    released.
  • OTLP metric export failures are now emitted through Core telemetry, making them visible through
    the SDK logger.

Full Changelog: v1.5.0...v1.6.0

v1.5.0

Choose a tag to compare

@GregoryTravis GregoryTravis released this 11 Jun 14:42
1ec77e8

What's Changed

⚠️💥 Standalone Activities (#443) (experimental)

A Standalone Activity is a top-level Activity Execution started directly by a Client, without using a Workflow. This results in fewer Billable Actions in Temporal Cloud than using a Workflow to run a single Activity. If your Activity Execution is short-lived, you will also notice lower latency, since there are fewer Worker round-trips.
(#443)

⚠️ Standalone Activities Start Delay (#443) (experimental)

Add start_delay: option to Client#start_activity / #execute_activity for Standalone Activities.
When set, the server creates the activity immediately but defers dispatch to a worker until the delay elapses.
(#455)

Bug Fixes

  • Do not pass on empty token for sync nexus calls; fixed flaky test_nexus_operation_handle_async_has_token (#439)
  • Expose priority param on start_workflow_operation (#444)
  • Fix incorrect outcome check for polling in update_with_start (#457)

Full Changelog: v1.4.1...v1.5.0

v1.4.1

Choose a tag to compare

@chris-olszewski chris-olszewski released this 14 May 19:31
38495b8

What's Changed

  • Bug fix for 1.4.0 where DNS load balancing was accidentally enabled by default. DNS Load balancing now must be opted-into by passing dns_load_balancing keyword to Temporalio::Client.connect (#433)

Full Changelog: v1.4.0...v1.4.1