Skip to content

Conversation

vkoby
Copy link
Contributor

@vkoby vkoby commented May 23, 2021

What was changed

Added optional health check that's performed by the client by making a request to endpoint to make sure that the server is accessible.

  1. Closes issue: #481
  2. How was this tested:
    Unit test

@vkoby vkoby added the enhancement User experience label May 23, 2021
Copy link
Contributor

@vitarb vitarb left a comment

Choose a reason for hiding this comment

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

Please consider what we have in go, also look at temporalio/sdk-go#453 where we've added retries for health check.
We need to have same/similar naming and configuration defaults across go and java.

* HealthCheckAttemptTimeout specifies how to long to wait for service response on each health
* check attempt. Default: 5s.
*/
private final Duration HealthCheckAttemptTimeout;
Copy link
Contributor

Choose a reason for hiding this comment

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

s/HealthCheckAttemptTimeout/healthCheckAttemptTimeout

Copy link
Contributor

@vitarb vitarb left a comment

Choose a reason for hiding this comment

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

Approved with a small comment.

@vkoby vkoby merged commit b019915 into temporalio:master May 28, 2021
@vkoby vkoby deleted the health-check branch May 28, 2021 21:01
@vkoby vkoby linked an issue May 29, 2021 that may be closed by this pull request
robzienert pushed a commit to robzienert/sdk-java that referenced this pull request Jul 23, 2021
…LLEY/nflx-temporal-sdk:merge_oss to master

* commit '671858b5039cbce290427ddcf723149c6e60cdd1':
  Small tweak to upgrade notes
  Document upgrade
  Comment out changes that pull in dependencies from grpc 1.34+
  Add netflix.io.grpc:grpc-services-nflx
  update dependency locks
  Implement configurable DEFAULT_DEADLOCK_DETECTION_TIMEOUT (temporalio#524)
  Change InterruptedException logs to debug-level. (temporalio#533)
  Updated dependencies. (temporalio#532)
  Fixed flaky DetachedScopeTest + Javadoc + Refactoring (temporalio#526)
  Add getWorker method to TestWorkflowRule (temporalio#528)
  Avoid throwing IllegalStateException in NoopSuspendableWorker (temporalio#527)
  Cleaning up Activity Javadocs (temporalio#453)
  Add workerFactoryOptions override to the JUnit 5 extension (temporalio#520)
  Removes slf4j-simple from api scope (temporalio#523)
  Release v1.0.9 (temporalio#522)
  Fix health check attributes (temporalio#519)
  Release v1.0.8 (temporalio#518)
  Out-of-process test server (temporalio#470)
  Health Check (temporalio#504)
  Workflow retry in Test Service (temporalio#510)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configuration of workers to back off completely if the server is not available Health check between service + temporal servers

2 participants