Skip to content

feat: Unified activity operator APIs#743

Open
spkane31 wants to merge 8 commits intomasterfrom
spk/activity-operator-cmds
Open

feat: Unified activity operator APIs#743
spkane31 wants to merge 8 commits intomasterfrom
spk/activity-operator-cmds

Conversation

@spkane31
Copy link
Contributor

@spkane31 spkane31 commented Mar 24, 2026

What changed?
Add {Pause/Unpause/Reset/Update}ActivityExecution RPCs and corresponding request/response pairs that will target both workflow embedded and standalone activities. These all strictly target a single activity by ID, if a workflow_id is specified on the request the operation targets a workflow activity.

Why?
Unified support for activity operations.

Breaking changes
None

Server PR
Does not break server

@spkane31 spkane31 requested review from a team March 24, 2026 20:04
@spkane31 spkane31 marked this pull request as draft March 24, 2026 20:04
@spkane31 spkane31 changed the title [DO NOT MERGE] Prototype activity operator APIs feat: Unified activity operator APIs Mar 24, 2026
@spkane31 spkane31 marked this pull request as ready for review March 24, 2026 23:08
Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

The comments I put on the PauseActivityExecution request applies to all of the new APIs.

};
option (temporal.api.protometa.v1.request_header) = {
header: "temporal-resource-id"
value: "workflow:{workflow_id}"
Copy link
Member

Choose a reason for hiding this comment

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

This header is conditional based on whether the API is targeting a workflow or an activity.

Copy link
Member

Choose a reason for hiding this comment

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

See what RespondActivityTaskCompletedById did here.

Comment on lines +1706 to +1710
post: "/namespaces/{namespace}/activities/{activity_id}/pause"
body: "*"
additional_bindings {
post: "/api/v1/namespaces/{namespace}/activities/{activity_id}/pause"
body: "*"
Copy link
Member

Choose a reason for hiding this comment

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

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.

2 participants