SkilldexAll articles

Limit tool traffic across concurrent skill runs

Coordinate requests and retries when many workflows share one provider quota.

A skill can behave sensibly in isolation and still contribute to rate-limit errors when a large group of runs starts together. Shared quotas belong to a central budget or another coordination mechanism that sees traffic across the workflows using the same dependency.

Apply limits at the correct scope

Identify how the provider accounts for requests, tokens, concurrency, or operations and which identity owns the quota. Separate customer fairness from upstream limits where possible. A tenant should not consume the entire shared capacity just because its triggers happen to arrive first.

Handle throttling as a signal

Recognize rate-limit responses and honor provider-supplied retry timing when applicable. Bound retries with a shared deadline and use jitter to avoid synchronized bursts. An independent loop in every worker can produce another synchronized wave even if each individual handler uses a short delay.

Keep a useful backlog view

Measure pending items, the oldest wait, and the fraction rejected or deferred. A long queue can make it impossible to meet a task deadline, even if no HTTP requests are failing. Record the reason a run was postponed so the user can distinguish waiting for capacity from a permanent permission issue.

Sources