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

Worker client replacement #236

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

cretz
Copy link
Member

@cretz cretz commented May 3, 2024

What was changed

  • Update core to get Worker client replacement sdk-core#721
  • Exposed Client property on Worker w/ getter/setter
    • Setter now replaces the worker client
  • Added test proving the worker switches servers (even if this is not how people should use client replacement)

Checklist

  1. Closes [Feature Request] Client replacement in worker #235

@cretz cretz requested a review from a team May 3, 2024 22:15
internal IWorkerClient Client { get; private init; }
/// <remarks>
/// When this property is set, it actually replaces the underlying client that is being used
/// by the worker. This means the next calls by the worker to Temporal (e.g. responding
Copy link
Member

Choose a reason for hiding this comment

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

nitpicky

Suggested change
/// by the worker. This means the next calls by the worker to Temporal (e.g. responding
/// by the worker. This means subsequent calls by the worker to Temporal (e.g. responding

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 This one in particular may not be worth another commit.

@cretz cretz merged commit e771d5b into temporalio:main May 6, 2024
7 checks passed
@cretz cretz deleted the worker-replace-client branch May 6, 2024 14:05
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.

[Feature Request] Client replacement in worker
2 participants