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

Disable eager start by default #1879

Merged

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Disable eager start by default because it does not interact with worker versioning well.

@Quinn-With-Two-Ns Quinn-With-Two-Ns marked this pull request as ready for review October 3, 2023 18:00
@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner October 3, 2023 18:00
@@ -105,7 +105,7 @@ public static final class Builder {

private List<ContextPropagator> contextPropagators;

private boolean disableEagerExecution;
private boolean disableEagerExecution = true;
Copy link
Member

Choose a reason for hiding this comment

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

If we were to do it over again, I suspect we'd prefer enableEagerExecution here and I suspect that's what it'll be in all other SDKs. Is it worth breaking compatibility to make it more clearly opt-in? If we are willing to change it, I wonder if enableEagerStart is a better name to match Go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree if we were doing it from scratch I would change the name, but we aren't doing it from scratch and we need to keep in mind of compatibility guarantees so I wouldn't change the name since it's more trouble then it's worth

Copy link
Member

Choose a reason for hiding this comment

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

👍 I think at least for any other SDKs we implement this in, we can be more Go like and just let Java be the outlier

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit b083a70 into temporalio:master Oct 5, 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.

2 participants