Handling activity retry cascades and worker throttling for external script verifications

I have been running a Temporal workflow designed to orchestrate automated integrity checks and asset validation across several external utilities. Everything works cleanly in staging, but in our production pipeline, a downstream activity responsible for polling release payloads against our automation script hub website keeps encountering intermittent network latency, which causes Temporal to trigger repeated activity retries until reaching the retry cap.

The main issue is that this retry loop creates a cascading delay that backs up dependent child workflows whenever the destination server throttles connections. Our worker nodes end up holding open task executions for much longer than expected, ultimately leading to thread pool saturation across our standard task queue and delaying unrelated scheduled cron workflows.

Has anyone tackled a similar scenario by integrating circuit breaker logic or custom backoff interceptors within Temporal activities? I would appreciate any guidance on whether adjusting StartToClose timeouts or routing external validation tasks to an isolated, rate-limited task queue would be the cleaner architectural fix here.

Would probably look into having activity-specific task queues and set activity task dispatch limits based on your downstream rate limits (to stay under them).
You can do that via worker options, for example Go SDK worker.Options.TaskQueueActivitiesPerSecond
Note that task dispatch rate can have burst per task queue partition (default partition num is 4).
You can calculate this burst per partition:
burst-per-partition = ceiling(rate/num-of-partitions) so for example if you set TaskQueueActivitiesPerSecond to like 2 it would be by default ceiling(2/4)=1, so at time X server can dispatch 4 activity tasks to your activity workers, but over time it would make sure they are dispatched per your rate.
If you have strict downstream rate limit reqs, and not high rate of activities scheduled, you could consider setting num of task queue partitions on these activity task queues to 1. This would make sure the burst rate is always your actual rate.

Another thing that would do in addition, make sure your activity code sets both connection and response timeouts. You can get from Temporal SDKs the activity StartToClose timeout in activity code, for example again in Go SDK:
activity.GetInfo(ctx).StartToCloseTimeout
then when you make your api calls put both connection and response timeouts thats under this value.
When either of these client timeouts fire, fail the activity right away to issue retry (so not run into activity timeout).