The task has been terminated since the API call is taking too long to respond

The task has been terminated since the API call is taking too long to respond

Hi there,

I am using Deluge with invokeurl to make several API calls within a loop. The API calls itself, when using Postman, are done within 2-3 seconds (all togehter). When using Deluge it does take much more time and ends up in 
"The task has been terminated since the API call is taking too long to respond. Please try again after sometime.")

But sporadically it works. I do know that an API call can only last a maximum of 40 seconds. I do think this is for a single API call? Since there's definately no single API call which uses even a second, I am wondering if the whole function has a maximum time limit? Is this true and how can I prevent this?

I did a lot of performance optimizing within the Deluge functions, but it did not help at all. I do see that the performance on Zoho's servers differs a lot.

Any help / experience is appreciated, since it is essential getting those data in my application .