Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Using Time.sleep or Wait activity

Hello,   Currently in one of our pipelines we are consuming an API call that has a hourly fixed limit of calls. I was wondering, if we use multiple time.sleep(1hour) inside a notebook, all the time...
  • govindarajan_d's avatar
    1 year ago

    Hi Anonymous,

     

    Are you going to pause your capacity in-between? If not, then there is no extra charges for waiting/sleeping. The capacity irrespective of what you do, is billed at fixed cost at seconds level after the first minute. 

     

    You can also scale up/down the capacity during the sleeping time (using LogicApp/REST API to scale) which will help you to save costs. For example, you might be running your capacity at F16 when the pipeline is actually running, but during its waiting time you might want to scale down to F2.