Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Mar 27, 2024
1 parent d296558 commit 28d6529
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions temporal-sdk/src/main/java/io/temporal/worker/WorkerOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,12 @@ public Builder setBuildId(String buildId) {
}

/**
* During graceful shutdown, like calling {@link WorkerFactory#shutdown()}, if "sticky worker"
* is enabled, this timeout controls how long to wait for the sticky task queue to drain before
* shutting down the worker. If set the worker will stop making new poll requests on the normal
* task queue, but will continue to poll the sticky task queue until the timeout is reached.
* This value should always be greater than clients rpc long poll timeout, which can be set via
* {@link WorkflowServiceStubsOptions.Builder#setRpcLongPollTimeout(Duration)}.
* During graceful shutdown, as when calling {@link WorkerFactory#shutdown()}, if the workflow
* cache is enabled, this timeout controls how long to wait for the sticky task queue to drain
* before shutting down the worker. If set the worker will stop making new poll requests on the
* normal task queue, but will continue to poll the sticky task queue until the timeout is
* reached. This value should always be greater than clients rpc long poll timeout, which can be
* set via {@link WorkflowServiceStubsOptions.Builder#setRpcLongPollTimeout(Duration)}.
*
* <p>Default is not to wait.
*/
Expand Down

0 comments on commit 28d6529

Please sign in to comment.