Skip to content

add time-skipping configuration to UpdateWorkflowExecutionOptions#9944

Open
feiyang3cat wants to merge 2 commits intotemporalio:mainfrom
feiyang3cat:ts/config-2-new
Open

add time-skipping configuration to UpdateWorkflowExecutionOptions#9944
feiyang3cat wants to merge 2 commits intotemporalio:mainfrom
feiyang3cat:ts/config-2-new

Conversation

@feiyang3cat
Copy link
Copy Markdown
Contributor

@feiyang3cat feiyang3cat commented Apr 14, 2026

What changed?

Frontend validation — validateTimeSkippingConfig is now invoked in:

  • UpdateWorkflowExecutionOptions (direct call)
  • ResetWorkflowExecution (indirect has update)
  • StartBatchOperation with UpdateWorkflowOptionsOperation/Reset (indirectly)

Persistence

  • MutableStateImpl.ApplyWorkflowExecutionOptionsUpdatedEvent now persists the config to executionInfo.TimeSkippingInfo

Events

  • History event recording — timeSkippingConfig parameter added to WorkflowExecutionOptionsUpdatedEvent
  • Rebuild, Reset, Replication

Why?

Support update feature of time-skipping.

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)

@feiyang3cat feiyang3cat requested review from a team as code owners April 14, 2026 06:23
@feiyang3cat feiyang3cat changed the title fix conflicts add time-skipping configuration to UpdateWorkflowExecutionOptions Apr 14, 2026
nil, // priority
nil, // timeSkippingConfig
)
return api.UpdateWorkflowWithoutWorkflowTask, err
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

use existing execution on wfID conflict doesn't involve ts config changes

@feiyang3cat feiyang3cat force-pushed the ts/config-2-new branch 6 times, most recently from 0330cd8 to 9fd5698 Compare April 14, 2026 07:50
case enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED:
if isDuplicate(event) {
continue
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Q: is this NDC still in use in Cloud when all replication is state based

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.

1 participant