Skip to content

Conversation

@Sushisource
Copy link
Member

What was changed

Updating (adding in this case) versioning samples in all langauges

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@Sushisource Sushisource requested review from a team, antmendoza and tsurdilo as code owners September 16, 2025 22:29
@Sushisource Sushisource force-pushed the worker-versioning-sample branch from 856c85a to 6547bfe Compare September 16, 2025 22:32
return moreData;
}

public void setCalledBy(String calledBy) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not how I would personally recommend a user create an input type, I would recommend annotating the constructor

https://github.com/temporalio/samples-java/blob/main/core/src/main/java/io/temporal/samples/nexus/service/NexusService.java#L18

Copy link
Member Author

Choose a reason for hiding this comment

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

I was looking for something like that and couldn't find it. Thanks


## Steps to run this sample:

1) Run a [Temporal service](https://github.com/temporalio/samples-java/tree/main/#how-to-use).
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if the user is on an old version of Temporal that doesn't support worker versioning or it isn't enabled? Will this sample fail with a clear error they need to enable it?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's enabled by default at this point, so the main thing is just to make sure they have a recent version. I've added that to the readme.

@Sushisource Sushisource merged commit 626bf03 into main Sep 17, 2025
11 checks passed
@Sushisource Sushisource deleted the worker-versioning-sample branch September 17, 2025 23:12
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