Skip to content

Standalone activities in Go#4203

Draft
yuandrew wants to merge 10 commits intotemporalio:mainfrom
yuandrew:standalone-activities
Draft

Standalone activities in Go#4203
yuandrew wants to merge 10 commits intotemporalio:mainfrom
yuandrew:standalone-activities

Conversation

@yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Feb 9, 2026

What does this PR do?

Describes a new feature for standalone activities

Notes to reviewers

@yuandrew yuandrew requested a review from a team as a code owner February 9, 2026 20:06
@vercel
Copy link

vercel bot commented Feb 9, 2026

@yuandrew is attempting to deploy a commit to the Temporal Team on Vercel.

A member of the Team first needs to authorize it.

@jsundai jsundai self-assigned this Feb 9, 2026
@jsundai
Copy link
Contributor

jsundai commented Feb 12, 2026

Reviewing, editing, and merging this today.

@yuandrew
Copy link
Contributor Author

Go SDK v1.40.0 was just released today, so the SDK should now support all of these code snippets for users to use themselves https://github.com/temporalio/sdk-go/releases/tag/v1.40.0. So good to merge whenever, from my side! Thanks @jsundai

@vercel
Copy link

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview, Comment Feb 18, 2026 11:00pm

Request Review

@jsundai
Copy link
Contributor

jsundai commented Feb 12, 2026

@prasek Could you take a quick look at this when you get a chance? Thanks!

@yuandrew
Copy link
Contributor Author

@jsundai Phil is pretty backed up with other tasks. We should be good to merge here, we can always update the docs when Phil gets a chance to review later on

@jsundai
Copy link
Contributor

jsundai commented Feb 18, 2026

This looks good to me. Since it's experimental, we'll create another follow up PR to change it to pre-release next week.


:::info PREREQUISITES

Standalone Activities require server-side support. If you are running a self-hosted Temporal Server, the following
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this section. This feature will only work on a special CLI release and in Temporal Cloud. In server 1.31.0 (the next OSS server release) all of this will be enabled by default.

You can pass the Activity as either a function reference or a string Activity type name:

```go
// Using a function reference (recommended — enables compile-time parameter validation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's false. It's runtime parameter validation (assuming that was implemented).

Copy link
Contributor

@prasek prasek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good, added some suggestions


:::

:::info PREREQUISITES
Copy link
Contributor

@prasek prasek Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have them run with dev server, similar to https://docs.temporal.io/develop/typescript/nexus#run-the-temporal-nexus-development-server

@dandavison @bergundy will there be a temporal server start-dev flag to enable Standalone Activities?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there will not be a flag. The special release of the dev server will enable it by default.

- [Get the result of a Standalone Activity](#get-activity-result)
- [Get a handle to an existing Standalone Activity](#get-activity-handle)

:::caution EXPERIMENTAL
Copy link
Contributor

@prasek prasek Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should say it's in Pre-release using the same form as the Nexus SDK feature guide

Like this

:::tip SUPPORT, STABILITY, and DEPENDENCY INFO
Temporal Go SDK support for Standalone Activities is at [Pre-release](https://docs.temporal.io/evaluate/development-production-features/release-stages#pre-release).

All APIs are experimental and may be subject to backwards-incompatible changes.
:::


:::info PREREQUISITES

Standalone Activities require server-side support. If you are running a self-hosted Temporal Server, the following
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These self-hosted options should be moved to the self-hosted guide, similar to https://docs.temporal.io/production-deployment/self-hosted-guide/nexus

Also we should stick with dev server (and Cloud) for these SDK dev guides.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't available and not relevant to document.

:::


## Execute a Standalone Activity {#execute-activity}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally this quick start should allow users to cut/paste commands and have it working on their local machine with the least amount of work possible

so before this would add:

  • note saying everything is based on an SDK sample (with link), so they can clone it
  • commands (they can cut/paste) to clone, get dev server initialized, and the sample activity worker running, so it's ready to for a client to execute a Standalone Activity
  • then after this code walkthrough, would provide a command (they can cut/paste) to execute the standalone activity

@bergundy
Copy link
Member

What about list and count for standalone activities?

@yuandrew yuandrew marked this pull request as draft February 19, 2026 17:08
@yuandrew
Copy link
Contributor Author

@jsundai we decided this should wait until a special server release that will fully support standalone activities for this to go live, converting to a draft for now. Will re-publish when we're ready to merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments