Sleep / rate-limit against API caps
Pace HubSpot, Notion, and HTTP writes with Sleep, Repeater batches, and 429-aware error routes so a backfill does not lock the portal or the scenario.
Yoav Cohen · Operator · Oct 15, 2026
- Trigger
- Schedule or a manual Run once for backfills. Do not put a long Sleep on an instant webhook scenario — the sender will time out and retry.
- Operations cost
- Sleep = 1 credit each time it runs. Design the batch so Sleep runs per page (50 times) not per contact (5,000 times). Example: 5,000 contacts, page size 100, Sleep once per page, Create or Update per contact: Repeater 50 + Search 50 + Sleep 50 + Create 5,000 ≈ 5,150 credits. Same job with Sleep per contact ≈ 10,150 credits. Instant webhook scenarios should spend 0 credits on Sleep; queue instead.
Make modules
- Repeater
- Iterator
- Sleep
- HubSpot CRM > Search for Contacts
- HTTP > Make a Request
- Error handler > Resume
- Data Store > Update a Record
Scenario steps
1. Repeater
If you must page an API (HubSpot Search has a limit/after cursor), Repeater from 0 to N pages. Store `after` in a variable between iterations.
Gotcha: Repeater × Iterator is a multiplier. Repeater 50 × 100 results is 5,000 bundles if you then Iterator the results without aggregating. Page, process, aggregate, then next page.
2. HubSpot CRM > Search for Contacts
Pull a page (limit 100). Process that page fully before the next Repeater tick.
Gotcha: HubSpot's burst limit is per key/portal, not per scenario. Two scenarios Searching at once share the cap. Stagger schedules.
3. Sleep
After each write-heavy module, Sleep 200–1000 ms matching the vendor's documented limit (Notion is stricter than HubSpot; some HTTP APIs are 1 rps).
Gotcha: Sleep is 1 credit per execution of the module. Inside an Iterator of 1,000, Sleep costs 1,000 credits. Prefer batching: write 10, Sleep 1s, not write 1, Sleep 100ms, 1,000 times if the math is worse.
4. HTTP > Make a Request
For APIs without a Make app. Read Retry-After on 429 when present; otherwise use a fixed Sleep on the error route.
Gotcha: Retry-After can be 30–120 seconds. Sleeping that long on an instant webhook will exceed the webhook timeout. Move rate-limited work to a queued scenario: webhook writes Data Store, a scheduled worker drains it.
5. Error handler > Resume
On 429: Sleep (error route), retry HTTP once, if still 429 Resume with `rate_limited=true` and write the id to Data Store for the worker.
Gotcha: Do not Break 400 rate-limited bundles on a 2,000-row backfill unless you are on Pro and like clicking Retry 400 times. Data Store drain is the grown-up queue.
6. Data Store > Update a Record
Cursor persistence: last `after`, last processed id, last HTTP status. Lets you stop the scenario and continue tomorrow without restarting the CSV.
Gotcha: A Data Store of cursors is the difference between a backfill you can pause and a backfill you are afraid to stop.
Failure mode
Sleep on an instant Custom webhook: the inbound provider waits, times out (often 5–10s), retries, and you process duplicates while the original execution is still Sleeping. HubSpot 429 without a handler: scenario errors, incomplete executions (or a hard stop on Core), cursor lost, rerun duplicates. Sleep 0 is a no-op you thought was a delay. Repeater with no cap that follows a moving cursor can infinite-loop until credits are gone. Concurrent scenarios sharing one HubSpot connection amplify 429s and look like 'Make is down'.
When not to use this
If the API already supports bulk upsert (HubSpot batch APIs via HTTP Make an API Call, Sheets Bulk Add Rows), use the bulk endpoint and Sleep once. If volume is 20 records a day, you do not need this pattern — a single error-route Sleep on 429 is enough. If you are hitting caps because the scenario is polling too often, fix the schedule first, not the Sleep.
This is a partner link. stackstrategist may earn a commission if you subscribe, at no extra cost to you. How Make pays partners (12 months of plan price, not extra operations) is on pricing gotchas.