Skip to content

Conversation

@fretz12
Copy link
Contributor

@fretz12 fretz12 commented Dec 18, 2025

What changed?

Added a return flag on the NewExecution function to indicate if a new execution was actually created. Also added docs to NewExecution. Changed standalone activity on start to pass back started flag if new exec was actually created.

Why?

On NewExecution today if we use BusinessIDConflictPolicyUseExisting, we need a way to distinguish whether something is newly created or not. Based on that flag, caller code can react differently.
For standalone activity, we must pass back the started flag according to whether a new exec was actually started, to matching existing workflow behavior.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@fretz12 fretz12 requested review from a team as code owners December 18, 2025 23:52
@fretz12 fretz12 requested review from bergundy and yycptt December 19, 2025 00:23
@fretz12 fretz12 force-pushed the fredtzeng/chasm-new-exec-create-flag branch from 0b9f6a9 to 9b69fc2 Compare December 23, 2025 17:01
@fretz12 fretz12 merged commit 440f598 into temporalio:main Jan 3, 2026
59 checks passed
@fretz12 fretz12 deleted the fredtzeng/chasm-new-exec-create-flag branch January 3, 2026 02:15
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