Skip to content

Conversation

@mfateev
Copy link
Member

@mfateev mfateev commented May 10, 2020

Added options to configure number of polling threads:

  • WorkerFactoryOptions.workflowHostLocalPollThreadCount for number of poller threads for cached workflows
    -WorkerOptions.workflowPollThreadCountfor number of poller threads on a workflow task list
  • WorkerOptions.activityPollThreadCount for number of poller threads on an activity task list

Also fixed WorkerOptions.taskListActivitiesPerSecond which configures global task list throttling.

WorkflowServiceStubs service,
String namespace,
String taskList,
double taskListActivitiesPerSecond,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why pass this separately and not use SingleWorkerOptions value for taskListActivitiesPerSecond? https://github.com/temporalio/temporal-java-sdk/blob/master/src/main/java/io/temporal/internal/worker/SingleWorkerOptions.java#L45

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. Removed taskListActivitiesPerSecond from SinglePollerOptions as they don't apply to the workflow worker.

@mfateev mfateev merged commit 2e19c7f into temporalio:master May 12, 2020
@mfateev mfateev deleted the poller_options branch May 12, 2020 16:36
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