- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 06:42 PM
※This is the Paris version.
I'm using the script below to set the wait time.
However, this method seems to be CPU-intensive.
Does anyone know how to set an efficient wait time?
The script will be used in the job schedule.
function sleepe_timer() {
sleepe(30000);
function sleepe(a) {
var startMsec = new Date();
while (new Date() - startMsec < a);
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 06:53 PM
Hi
you can use gs.sleep(milliseconds). Please note that you can only use it in the global scope but not in a custom scope.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2022 01:35 PM
With flow designer in action, its best to implement wait / sleep using a flow logic instead of BR / gs.sleep and so on.