Replies: 3 comments 6 replies
-
Until it is supported you can add delay manually in requests where it is needed by putting this in Post response script await new Promise(r => setTimeout(r, 1500)); |
Beta Was this translation helpful? Give feedback.
-
Ahh, thank you. Now I understand. I came from Postman that when iterating through a CSV file on a request, you can specify a time delay between each API call. I thought this feature in Bruno was the equivalent. I see the open issue 2251. I would suggest also adding a time delay between calls if the parallel checkbox is unselected. I call several different API endpoints to update thousands of records. Some of them have restrictions on the number of calls - like you can't exceed 100 calls in any 10 second period. Even with parallel turned off, you could exceed such a condition, depending on how fast it responds to each call. Thanks for the info and clarification. I'll try to figure out another way to do my mass updates. |
Beta Was this translation helpful? Give feedback.
-
await new Promise(r => setTimeout(r, 2000)); ...gives me the 'new' error in all forms of running (bruno 1.22.0 macos), but this seems to work... function msleep(n) {
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, n);
}
msleep(2000); // 2 second sleep (as seen here - https://stackoverflow.com/a/74210440 ) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I think a very welcome feature is to add the ability to define a delay between requests in a sequence when running a collection.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions