Pause/Wait next operations depends on the total previous operations

Describe the issue/error/question

Hey everyone.

i want to ask how to pause the operations if operations reaching n numbers.

my goal is to push the data from google sheet to freshworks crm, but since freshworks crm has 1k api call per hours, i want to manage that quota by using Pause/Wait functions

example:
if 2 freshworks crm node (im using http request) operations already reach more than 700, this will pause/wait for 1 hours, then after 1 hours will continue.

if 2 freshworks crm node (im using http request) operations is less than 200, this will bypass the pause/wait function and continue the rest.

i will use if functions to split the conditions

Please share the workflow

Information on your n8n setup

  • **n8n version: n8n@0.158.0
  • **Database you’re using:SQLite
  • **Running n8n with the execution process :own
  • **Running n8n via :docker

Hi @Farhienza_Haikal,

if you want to avoid overloading an API you’re consuming through the HTTP Request node, the easiest way would be to configure the node’s batch settings (Batch Interval and Batch Size)). So if you know your target API allows 1,000 executions per hour (or 16 per minute), I’d set these values accordingly:

Unless you have other workflows (or services) calling the API at the same time (in which case you’d need to adjust the aforementioned values), the above should do the trick without the need for Wait nodes or loops.

Let me know if you run into any trouble with this!