Skip to content

Workflow annotations for versioning #548

@antlai-temporal

Description

@antlai-temporal

Is your feature request related to a problem? Please describe.

The new worker versioning-3 implementation requires the annotation of workflows so that if they are pinned, it will not try to move them immediately to a new version, waiting for them to finish before garbage-collecting workers. The benefit of that is that short-running workflows, marked as pinned, do not need to get patched.

Describe the solution you'd like

The goal is to take advantage of code annotations when the language supports them, and the SDK already uses them for other purposes. If that is not the case, a programmatic API should be provided to add this annotation, and it should be invoked during the first workflow task executed by the workflow.

Additional context

Warning

Make sure we mark old APIs deprecated

Per-SDK Tickets

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions