How to plan a Temporal SDK upgrade across your worker fleet
Most teams running Temporal workers are on an SDK version that predates their current server, and they are afraid that upgrading will break workflows already in flight. The point of this section is that the fear is manageable if the SDK upgrade is planned as a fleet-wide change with a replay test gate, rather than a per-service version bump. Temporal asks users to upgrade both SDKs and servers to the latest versions on a regular cadence, because each release carries bug fixes, performance improvements and features. Keeping the two moving together on a set schedule means you never face a large, risky jump that combines many changes at once. Your first decision is the cadence itself: who owns the SDK inventory, how often the fleet is reviewed, and which server version the workers will be tested against.
The supported way to de-risk an SDK change is replay testing against existing Event Histories before and during deployment. Temporal recommends this specifically to catch non-determinism errors, which occur when new workflow code would make different decisions than the code that produced a stored history. Practically, export representative histories from production for each workflow type you are changing, run them through a worker built with the candidate SDK and your current workflow code, and treat any failure as a blocker. Make the replay suite part of CI, so every SDK bump in a go.mod, package.json, pom.xml or similar file triggers it. Confirm with your SDK's documentation how replay tests are written in your language, since the mechanics differ between SDKs.
Plan the server path separately. Upgrading the Temporal Server, including its schema steps, is covered in the sibling pages on the server minor version path and on schema upgrades, and this section does not repeat them. What matters here is sequencing: confirm the SDK and server versions you intend to run together are compatible, and check the release notes for both before you start. During the rollout, keep old and new workers running side by side on the same task queues only after your replay tests pass, and roll workers in controlled batches while watching for workflow task failures and non-determinism errors. Ask your team to confirm the rollback path for each worker image before the first batch moves.
What changes between Temporal SDK and server releases
This table compares the change types that matter when an SDK and the Temporal Server move together, using the current server releases as the server side. Pull the release notes for each SDK language your workers use and fill the SDK rows from them, flagging any determinism change, default behavior change, deprecated API or required server version. Read each row as a question to answer before the rollout starts, not as a list of changes to accept.
| Change | Impact on workers | Action needed |
|---|---|---|
| Server v1.32.1 (published October 8, 2026) | Latest minor line; the server side of a version pairing that must be checked against each SDK's required server version | Confirm in each SDK's release notes that the chosen SDK supports this server before moving the cluster |
| Patch releases v1.31.4 and v1.30.8 (published October 12, 2026) | Carry fixes for earlier minor lines; a fleet on those lines may need a patch before any minor hop | Move to the latest patch of the current minor first, then plan the minor step separately |
| SDK determinism changes in the release notes | Changes to how workflow code is replayed can cause non-determinism errors on histories already in the cluster | Run replay testing against production histories for the new SDK before any worker rolls |
| SDK default behavior changes | Defaults such as timeouts, retry or versioning behavior can change how running workflows execute without any code edit | Compare each default against your explicit settings and pin values that matter to you |
| Deprecated or removed SDK APIs | Code that compiles on the old SDK may fail to build or behave differently after an upgrade | List deprecated calls in your repository and replace them in the same change set as the SDK bump |
| Required server version for the SDK | A new SDK may require a server minor that your cluster does not yet run, so the server must move first | Sequence server upgrades ahead of SDK upgrades where the release notes require it |
How the upgrade changes for a single fleet versus mixed SDK versions
A single worker fleet running one language SDK is the simplest case. One team owns the workers, one codebase defines the workflows, and the upgrade is a contained change: bump the SDK, test the workflow code, and roll the workers. The order still matters. Temporal asks teams to keep SDKs and servers current on a regular cadence, so the fleet upgrade is usually planned alongside any pending server change rather than in isolation.
- Server ordering: confirm the server version the fleet connects to is supported by the target SDK before changing workers, and sequence any server step in its own window.
- Replay scope: replay the workflow histories that this fleet's code produced, which is a bounded set you can name by workflow type and task queue.
- Rollout risk: concentrated in non-determinism from changed workflow code, so keep old and new worker builds separated by a versioning approach until in-flight workflows drain.
- Inventory first: list the workflow types, task queues, the current SDK version and any custom interceptors or data converters in this fleet.
Before starting, check that the replay corpus covers the longest-running workflow types, because those are the histories most likely to hit an old code path.
Organizations with several services written in different languages, such as Go, Java, Python or TypeScript, rarely move every SDK together. Each service has its own release cadence, and a single namespace can carry workflows started by one service and executed by another. The upgrade becomes a coordination problem: each SDK moves on its own schedule, but every change must still leave the shared server and the cross-service workflow histories compatible.
- Server ordering: agree a minimum server version across all teams before any SDK moves, and do not let one team upgrade its SDK ahead of a server version another team still depends on.
- Replay scope: replay each service's histories against its own new SDK, and include cross-service workflows that a child or activity from another language will continue.
- Rollout risk: higher, because a workflow started under one SDK may be resumed by a worker on another, and each language has its own determinism rules and default behaviors.
- Inventory first: map every service to its SDK language and version, the namespaces and task queues it uses, and which workflows call into other services.
Assign one owner to the shared inventory and keep it current, since an outdated map is the most common reason a mixed rollout surprises a team.
Some estates combine both patterns: a shared platform team runs the server while several application teams own their own workers, and workflows regularly cross team boundaries through signals, child workflows and shared task queues. Here the risk is less about a single SDK and more about who controls the timing of each change. The platform team can set the server version, but it cannot see whether an application team has replay-tested its code.
- Server ordering: the platform team sets a supported window and publishes it, so application teams know which SDK versions they may move to.
- Replay scope: each owner tests against its own production histories, and the platform team confirms that no shared task queue is served by two incompatible worker builds.
- Rollout risk: shifts to governance, including unclear ownership of a failed workflow and pressure to delay a change that another team needs.
- Inventory first: record which teams own which workers, which workflow types cross team boundaries and who approves a change to a shared task queue.
Confirm with your Temporal support contact or your own test results which SDK versions your server version is documented to support before publishing the window.
Why replay testing against production histories comes before rollout
Replay testing is the check that proves new SDK code can still resume workflows that are already running. Temporal recommends replaying existing Event Histories before and during deployments to catch non-determinism errors. During replay, the new worker code re-executes a recorded workflow history from the start and must produce the same sequence of commands that the history already records, such as the same activities scheduled in the same order and the same timers. If the new code produces a different command, the worker reports a non-determinism error and the workflow cannot advance on that worker. The failure is easy to miss in a normal deployment, because new workflows start cleanly and only executions that were in flight during the change surface the problem, sometimes hours or days later.
The quality of the test depends on the histories you replay. Choose a sample that covers the workflow types, SDK features and branching logic your fleet actually runs, including long-running executions that started on the old SDK, workflows that use timers, signals, child workflows, versioning markers or patched code paths, and any type that changed recently. Histories are only available while they are within the namespace retention period, so confirm that period with your platform owner and export representative histories before they age out. Ask whether your history export tooling can pull a sample without touching production workers, and record which workflow types and history lengths the sample includes so the result can be reviewed later.
Passing unit tests does not prove replay safety. Unit tests usually run a workflow against mocked activities and check its outputs, but they do not compare the command sequence against a history produced by a previous build. A refactor that reorders two activity calls, adds an unguarded call, or changes a condition can pass every unit test and still fail on a real execution. Treat the replay run as a separate gate in the release pipeline, and keep the unit suite and replay suite as two results that both must pass before the new worker version receives traffic.
Upgrade sequence for worker fleets, with checks and rollback points
This sequence moves worker SDKs to a new version without breaking running workflows, with a named check and rollback point at each stage. It also keeps the server upgrade on its own minor-version path so the two stay compatible.
Inventory SDK and server versions
The platform owner lists every worker service, the Temporal SDK language and version each one runs, the container or binary image it ships in, and the Temporal Server version and namespaces it connects to. Include workers that run in other teams' repositories, batch jobs and scheduled workers, since they are easy to miss. The step is done when every task queue maps to a named service, an SDK version and an owner. Rollback point: no change has been made, so nothing needs reverting.
Align target SDK with target server
The team picks the target SDK version for each language and checks it against the Temporal Server version that will be running during and after the rollout. Where the server must move too, the server follows its own minor-version path: one minor at a time, the latest patch of each minor first, and schema steps before binaries when the release notes call for them. The check is a written compatibility note signed off by the platform owner, with the server upgrade plan linked to it. Rollback point: the current SDK and server pairing stays pinned in version control.
Replay test a sample of production histories
Before any worker runs the new code, the team exports a sample of Event Histories from production for each workflow type and replays them against the new SDK and the new workflow code. Temporal recommends replay testing against existing Event Histories before and during deployments to catch non-determinism errors. The check passes only when every sampled history replays with no non-determinism failure, and the sample covers long-running and recently changed workflows. Rollback point: the change is discarded and the workflow code is revised with versioning before another replay run.
Deploy the new SDK to a staging fleet
The team deploys the new worker build to a staging fleet that connects to a staging Temporal namespace with realistic workflow traffic, including signals, timers, child workflows and activity retries. The platform owner watches for workflow task failures, activity errors and any non-determinism error in the worker logs and the Web UI. The check is a clean run through the agreed test workflows with no unexpected failures. Rollback point: the staging fleet returns to the previous image and the pinned SDK version.
Canary a subset of production workers
The team routes a small, named subset of production workers to the new SDK, using a separate deployment or a labeled set of pods on the same task queue. Operators compare workflow task failure rates, activity error rates and workflow completion behavior between the canary and the existing fleet for a period the team sets in advance. The check passes when the canary shows no new error class and no growth in stuck or failed executions. Rollback point: the canary deployment is scaled down, and the previous image handles its tasks again.
Roll the remaining worker fleet
After the canary passes, the team rolls the rest of the worker fleet in batches, keeping a fixed number of old-version workers available until each batch is healthy. Rolling restarts should drain workers gracefully so in-flight tasks finish before shutdown. The check for each batch is the same as the canary check, with the team confirming that every task queue has the expected SDK version. Rollback point: the batch in progress is reverted to the pinned image, and the rollout pauses until the cause is recorded.
Monitor and close the upgrade
The team keeps dashboards and alerts on workflow task latency, failure rates, activity retries and worker counts for each task queue for a period agreed before the rollout. It also confirms that no workflows are stuck on old code paths that the new workers cannot process. The upgrade closes when the owner records the final SDK and server versions in the inventory and removes any temporary canary labels. Rollback point: until closure, the previous image and pinned SDK remain available in the registry.
What to prepare before the first worker is touched
Each card names an artifact to produce and the person who signs it off. Together they give the team a known starting point, a test that can fail on real history and a way back if a rollout goes wrong. Skipping any one of them makes non-determinism errors harder to see until they reach production workflows.
SDK and version inventory
List every worker service, the Temporal SDK language and exact version it links, the Temporal Server version it connects to, and the task queues and namespaces it polls. Include workers that run rarely, such as batch or month-end jobs, because they still replay histories when they resume. The platform team owns this list, and each service owner confirms their rows. Check that no service pins a transitive dependency that silently moves the SDK.
Temporal Server docsProduction history sample
Export a set of Event Histories from the production namespace that covers the workflow types in the inventory, including long-running executions that started before the last deployment. Include histories that contain timers, signals, child workflows and version markers, since these exercise the code paths most likely to diverge. The service owner who knows the workflow logic signs off that the sample is representative. Record how the sample was chosen so the result can be reproduced.
Replay test harness in CI
Wire a replay test into the pipeline that loads each exported history and runs it against the candidate worker code with the new SDK version. The job should fail the build on any non-determinism error and print the first mismatched command. Temporal recommends replay testing against existing Event Histories before and during deployments. The engineering lead signs off that a deliberately broken change fails the harness, which proves the test can catch a problem.
Safe deployments guideStaging that mirrors worker configuration
Build a staging environment whose worker count, task queue names, concurrency settings, graceful shutdown timeout and deployment method match production. Run representative workflows through it and confirm that old and new workers can share task queues during the transition. Differences in configuration hide problems that appear only under real load. The QA or platform owner signs off a written list of every known difference from production.
Rollback plan with previous image kept
Keep the previous worker image tagged, pullable and deployable for the full rollout window, and record the exact command or pipeline step that redeploys it. Decide in advance which signals trigger a rollback, such as workflow task failures or non-determinism errors in logs. Confirm that the previous SDK version still works with the current Temporal Server version before the upgrade starts. The on-call lead and the service owner sign off the plan together.
Freeze and workflow code ownership
Name one owner for every workflow code change made during the freeze and require each change to pass the replay harness before merge. Changes that alter command order, add or remove activities, or change timers need a versioning decision such as a patch marker or a new workflow type. Route any emergency fix through the same owner so that nobody deploys workflow code outside the review path. The engineering manager signs off the owner list and the freeze dates.
The decision path from replay test to full rollout
The path starts with an inventory of every worker fleet and the SDK version each one runs, then sends a sample of real Event Histories through a replay test on the new SDK. A failed replay stops the upgrade and sends the team back to fix the code before anything reaches staging. A passing replay moves the build through staging to a canary group of production workers, where error rates and non-determinism signals decide whether the rollout continues. Monitoring stays on after full rollout, and any failed check returns the work to a fix or a rollback.
Phases and pass or fail gates from SDK inventory through full rollout and monitoring.
What makes SDK upgrades take longer
This table lists the factors that expand the effort of an SDK upgrade across a Temporal worker fleet, why each one adds work, and what teams can do to keep it contained. Read each row as a question to answer about your own fleet before estimating the work with a partner or internal team.
| Driver | Why it adds effort | How to reduce it |
|---|---|---|
| Number of languages and services | Each SDK language and each service running workers needs its own dependency bump, build, test and rollout, and teams often pin different SDK versions per service. | Inventory every worker service and its SDK version, group them by language, and upgrade in batches that share a pipeline. |
| Volume and retention of workflow histories | Replay tests need representative Event Histories, and long-running or high-volume workflows create many histories that must be checked for non-determinism. | Select a sample covering each workflow type and open executions, and confirm retention settings so the histories you need still exist. |
| Versioning patches in workflow code | Code guarded by version markers must keep its branches correct for old histories, so each patch adds branches that replay tests must exercise. | Count active patches, remove those whose old histories have completed, and document which patches must stay. |
| Custom interceptors and data converters or codecs | Interceptors and payload converters run inside the SDK, so changes in SDK internals can alter behavior or require code changes on upgrade. | Review each custom interceptor and converter against the target SDK release notes and test them in replay and integration runs. |
| Gap between current and target server versions | Server and SDK compatibility must be confirmed together, and a large version gap can mean several server steps before the SDK change can safely roll out. | Confirm the server version the target SDK supports, and sequence server minor upgrades before the SDK rollout where needed. |
| Existing replay coverage in CI | Teams without automated replay tests must build histories, harnesses and runbooks before the first upgrade, which adds work to every release. | Add replay tests to CI against exported production histories so each SDK bump runs the same checks. |
What buyers ask before hiring help with a Temporal SDK upgrade
What drives the cost of a Temporal SDK upgrade project?
The cost follows the size and state of the worker fleet, the number of workflow types in use, and how much replay testing the team needs before rollout. Fleets with many services, several languages, or long-running workflows need more analysis and more staged rollouts. A partner's fee covers scoping, analysis of workflow code, test harness work, rollout support and knowledge transfer. Ask for a written scope that lists which services, SDK languages and environments are included, whether replay testing against production histories is included, and whether the quote covers one upgrade or a recurring cadence.
How long does an SDK upgrade take and what sets that time?
Duration depends mainly on how many services and workflow types must change, how much existing code needs to be replayed, and how many environments must move in sequence. Time is also spent on change windows, staging soak periods and rollback rehearsal. Teams with a mature test suite and replay tooling generally move faster than teams that must build those first. Confirm in the written scope the milestones, the environments in scope, who approves each rollout stage, and what happens if replay testing finds a blocking issue.
What does the work need from our engineers and access?
The work needs owners of each worker service who can explain workflow code and deployment pipelines, read access to workflow histories in a non-production namespace, and a way to run workers against copies of production histories. Engineers also need to agree on a worker versioning approach and on who can start, pause and roll back deployments. Access to the Temporal Service, the container registry, and CI/CD should be scoped to least privilege. Ask the provider which accounts, credentials and network paths it needs and how production data will be handled during analysis.
Can our internal team upgrade the SDKs without a partner?
Yes, many teams do this internally, provided they have engineers who understand workflow determinism, a repeatable replay test process, and a deployment pipeline that can run old and new worker versions side by side. Temporal recommends replay testing against existing Event Histories before and during deployments to catch non-determinism errors. A partner is most useful when the team lacks replay tooling, has many services to coordinate, or needs an independent review before a production change. Ask any provider to show how it would tailor the work to your own pipelines.
What should we do when a non-determinism error appears in production?
Stop the rollout of the new worker version first so that more workflows do not reach the changed code path. Identify the workflow type and the affected executions, then confirm whether the fault is in the new SDK behavior or in a code change that altered command order. Restore a known-good worker version if one is still available, and keep the failing histories for analysis. Fix the code with a versioning or patching approach, add the failing history to replay tests, and resume rollout only after replay passes. Include this runbook in the written scope so the response is rehearsed before an incident.
Do the SDK and server upgrades have to happen at the same time?
Not necessarily, but they must be planned together. Temporal asks users to upgrade both SDKs and servers to the latest versions on a regular cadence to get bug fixes, performance improvements and features. The Temporal Server should be upgraded one minor version at a time, and schema upgrades must run before server upgrades when release notes call for them. Confirm in the plan which server version each SDK release supports, the order of changes, and whether any worker must be replayed before the server moves. Keep compatibility notes in the written scope.
What should a written scope for an SDK upgrade include?
A useful scope lists the SDK languages and versions in scope, the worker services and task queues covered, the environments and namespaces involved, and the replay testing method. It should name deliverables such as updated worker code, replay test results, rollout runbook, rollback steps and handover documentation. It should also state the client responsibilities, the change windows, the acceptance criteria and the retest plan after rollout. Ask for these items explicitly before comparing quotes, because gaps in scope are the most common source of later cost changes.
How DeployOpen scopes, tests and supports the upgrade
DeployOpen treats an SDK upgrade in worker fleets as a change to workflow code that must be tested against recorded histories before any worker rolls. We agree the scope in writing, build the replay and rollout path in your environment, and hand over the runbook your team will use for later upgrades.
How we scope
- Inventory every worker service, its current SDK version and the workflow types it hosts.
- Confirm which Temporal Server version and deployment model the workers connect to.
- Agree in writing which workflow histories will be exported for replay and who approves them.
How we build
- Set up replay test suites that run new SDK versions against exported production Event Histories.
- Define the rollout order so server and SDK changes are sequenced and recorded in the change plan.
- Wire replay checks into your CI pipeline so each proposed SDK bump fails early on non-determinism.
How we hand over
- Deliver the replay test suite, rollout runbook and rollback steps in your own repositories.
- Document the versioning patches or flags used for in-flight workflows during a mixed-version rollout.
- Walk your platform and application teams through the runbook and record open questions for follow-up.
How we support
- Offer retainers covering later SDK upgrades, replay testing and ongoing support as the cadence requires.
- Re-run replay suites against each new SDK release before your teams schedule the next rollout.
- Keep the scope, deliverables and handover records current as your worker fleet and server versions change.

