Repository navigation
Say how to upgrade the Vercel AI SDK plugin from 1.0.0 with its heartbeat timeout - #552
Merged
Merged
Conversation
…beat timeout 1.0.0 schedules the model and embedding Activities with no heartbeat timeout, and only invokeModelStreaming heartbeats, once per stream part. The 10-second timeout is recorded when a Workflow schedules the Activity, so during a rolling upgrade a 1.0.0 Worker fails calls longer than 10 seconds. The README now says in which order to upgrade, how to roll back, and how heartbeatTimeout: 0 bridges a deploy.
Same steps, fewer words: the section goes from 19 lines to 12.
moetemp
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
The Vercel AI SDK README now says how to upgrade from 1.0.0, and how to roll back, now that the model and embedding Activities get a 10-second heartbeat timeout by default (#510).
Why?
1.0.0 schedules these Activities with no heartbeat timeout. Its
invokeModelandinvokeEmbeddingModelnever heartbeat, and itsinvokeModelStreamingheartbeats only when a stream part arrives (the onlyheartbeat()call in 1.0.0). But the timeout is recorded when a Workflow schedules the Activity, so whichever Worker runs it has to heartbeat. During a rolling upgrade, a call that a Workflow on the next version schedules and a 1.0.0 Worker runs fails with a heartbeat timeout after 10 seconds, and so does each retry.Does replay break? No: core only compares an Activity's ID and type. But a passing replay doesn't mean mixed versions work. So the README now gives the same steps that #520 and #551 give for Google ADK Python and google-genai:
heartbeatTimeout: 0and remove it in a later deploy.heartbeatTimeout: 0, and wait for the calls scheduled before that deploy to finish.Checklist
No issue: a docs follow-up to Give Vercel AI SDK model and embedding calls a 10-second default heartbeat timeout #510, part of [Feature Request] Default heartbeat timeout for every plugin's own activities #491.
How was this tested:
Docs only. The conventions check and
git diff --checkpass. To check the claims, I read 1.0.0's code: it sets noheartbeatTimeoutdefault, and its onlyheartbeat()call is ininvokeModelStreaming's stream loop. Onmain,TemporalProviderOptions.defaulttakes theActivityOptionsthe example sets. [python/google_adk] breaking: give model calls a 10-second default heartbeat timeout #520 measured the failure itself on a local dev server: an Activity that doesn't heartbeat failed 10.02 seconds in, and both attempts of a retried one failed the same way.Any docs updates needed?
This is the docs update. The 2.0.0 release notes should carry the same upgrade step.