Skip to content

Conversation

@THardy98
Copy link
Contributor

What was changed

Propagate CAN versioning and CAN suggested reasons to Python.

Why?

Users can specify auto-upgrade behavior on CAN.

  1. Part of Expose upgrade on continue as new in SDKs features#738

  2. How was this tested:
    To be added

  3. Any docs updates needed?
    Maybe?

@THardy98 THardy98 changed the title uUpgrade on CAN (needs test) Upgrade on CAN (needs test) Jan 29, 2026
For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
of the previous run.
"""
UNSPECIFIED = int(temporalio.api.enums.v1.ContinueAsNewVersioningBehavior.CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think unspecified needs a comment of what it does.


class SuggestContinueAsNewReason(IntEnum):
"""SuggestContinueAsNewReason specifies a reason why continue as new is true."""
SUGGEST_CONTINUE_AS_NEW_REASON_UNSPECIFIED = int(temporalio.api.enums.v1.SuggestContinueAsNewReason.SUGGEST_CONTINUE_AS_NEW_REASON_UNSPECIFIED)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe less interesting to, but also what unspecified means here.

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