Skip to content

add on conflict options for standalone activities#764

Merged
fretz12 merged 4 commits intomasterfrom
fredtzeng/saa-on-conflict
Apr 15, 2026
Merged

add on conflict options for standalone activities#764
fretz12 merged 4 commits intomasterfrom
fredtzeng/saa-on-conflict

Conversation

@fretz12
Copy link
Copy Markdown
Contributor

@fretz12 fretz12 commented Apr 14, 2026

What changed?
Added a new OnConflictOptions message to temporal.api.activity.v1 and a corresponding on_conflict_options field to StartActivityExecutionRequest.

Why?
When StartActivityExecution uses ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING and a matching activity is already running, the caller needs a way to specify what should be attached to the existing activity (request ID, completion callbacks, links). This mirrors the existing OnConflictOptions for workflows (temporal.api.workflow.v1.OnConflictOptions on StartWorkflowExecutionRequest) but is specific to the activity domain.

@fretz12 fretz12 requested review from a team April 14, 2026 02:42
@fretz12 fretz12 marked this pull request as draft April 14, 2026 02:42
@fretz12 fretz12 marked this pull request as ready for review April 14, 2026 02:42
@fretz12 fretz12 marked this pull request as draft April 14, 2026 04:31
@fretz12 fretz12 marked this pull request as ready for review April 14, 2026 17:55
@fretz12 fretz12 enabled auto-merge (squash) April 15, 2026 20:55
@fretz12 fretz12 merged commit 9109a85 into master Apr 15, 2026
4 checks passed
@fretz12 fretz12 deleted the fredtzeng/saa-on-conflict branch April 15, 2026 20:57
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.

3 participants