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

Lazy connectivity for Temporal client and healthCheck #45

Open
5 tasks done
Spikhalskiy opened this issue Apr 22, 2022 · 3 comments
Open
5 tasks done

Lazy connectivity for Temporal client and healthCheck #45

Spikhalskiy opened this issue Apr 22, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Spikhalskiy
Copy link
Contributor

Spikhalskiy commented Apr 22, 2022

Users should be able to create a Temporal Client for a temporarily unavailable Temporal server.

SDKs should have the main client or one of the clients that:

  1. Don't have an eager healthCheck and getSystemInfo calls in the constructor.
  2. getSystemCapabilities call should be performed on the first client call in a lazy manner.
  3. healthCheck endpoint should be exposed on the Client that will allow users to perform a health check for the corresponded gRPC service. It will also allow to initialize a connection in an explicit eager manner and perform initialization activities (system capabilities negotiation right now).
  4. There may be a .connect() or .dial call that establishes the connection and fetches system capabilities and which will allow to provide the same functionality/guarantees as an eager client provides.
@Spikhalskiy Spikhalskiy added the enhancement New feature or request label Apr 22, 2022
@bergundy
Copy link
Member

bergundy commented Aug 3, 2022

@cretz did you expose healthcheck in Go?

@cretz
Copy link
Member

cretz commented Aug 3, 2022

@bergundy - Yes, in the linked Go PR from the description. Client.CheckHealth(). I need to open a Core issue to expose it so Python can use it. (EDIT: temporalio/sdk-core#367)

@bergundy
Copy link
Member

bergundy commented Aug 3, 2022

Thanks @cretz I checked Go off the list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants