cadence-java-client icon indicating copy to clipboard operation
cadence-java-client copied to clipboard

WorkerActivitiesPerSecond does not work

Open sokada1221 opened this issue 5 years ago • 1 comments

Describe the bug Setting workerActivitiesPerSecond via setWorkerActivitiesPerSecond() does not perform any rate limiting.

To Reproduce Is the issue reproducible?

  • Yes

Steps to reproduce the behavior:

  1. Write and run a workflow with rate limited Activity worker via setWorkerActivitiesPerSecond()
  2. No rate limiting is performed at worker-level.

Expected behavior WorkerActivitiesPerSecond to work according to the documentation.

Screenshots N/A

Additional context N/A

sokada1221 avatar Oct 22 '20 21:10 sokada1221

Root cause: Took a quick look at Worker implementation. Seems like workerActivitiesPerSecond isn't used anywhere i.e. missing the implementation.

Will work on the missing implementation.

sokada1221 avatar Oct 22 '20 21:10 sokada1221