sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

worker.Options.WorkerActivitiesPerSecond applies after poll is received

Open cretz opened this issue 2 years ago • 0 comments

Expected Behavior

Since this rate limit is applied post-poll-pre-process, server timeouts apply while it is waiting. We even have a doc on this field saying users can set it to a fraction of a second, e.g. 1 activity every 10s, but if they had a heartbeat timeout, it could timeout before it starts.

We should either fix this (hard) or at least document this warning on the field.

cretz avatar Jun 07 '23 15:06 cretz