Skip to content

Add missing option to WorkflowIDReusePolicy enum #257

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

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

rgehan
Copy link
Contributor

@rgehan rgehan commented Jan 17, 2023

What was changed

This PR adds the missing TERMINATE_IF_RUNNING option to the existing WorkflowIDReusePolicy enum.

Why?

So that users of the SDK can use the easily accessible enum value, instead of hardcoding the value 4 or reaching for the longer import temporalio.api.enums.v1.WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING.

Checklist

  1. How was this tested:

No special tests, that is an enum.

  1. Any docs updates needed?

I haven't found any documentation to update.

@CLAassistant
Copy link

CLAassistant commented Jan 17, 2023

CLA assistant check
All committers have signed the CLA.

@rgehan rgehan changed the title Add missing TERMINATE_IF_RUNNING to WorkflowIDReusePolicy Add missing option to WorkflowIDReusePolicy enum Jan 17, 2023
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Thanks! Not sure how I forgot that.

@cretz cretz merged commit 677262a into temporalio:main Jan 17, 2023
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