Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable type-scoped Versioning Behavior for workflows #1698

Open
antlai-temporal opened this issue Oct 30, 2024 · 0 comments
Open

Enable type-scoped Versioning Behavior for workflows #1698

antlai-temporal opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@antlai-temporal
Copy link
Contributor

Versioning-3 introduces behavior annotations for workflows that could change what Build ID will be used for a workflow next task.

The current API is programmatic, and requires invoking SetVersioningBehavior() during the first workflow task. This gives extra
flexibility for dynamic workflows but can be error-prone.

This issue suggests an alternative approach which associates a default behavior to a workflow type, using a new option for workflow registration.

Describe the solution you'd like

Add the option DefaultVersioningBehavior to workflow.RegisterOptions, providing a default behavior for all workflows of a particular type that do not use the programmatic API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant