Skip to content

Commit

Permalink
changed to 4sec after call
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhattin committed Nov 18, 2024
1 parent 891f76c commit 02f0167
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,17 @@
run_token: run_token!
});
if ('error_code' in out) {
clearInterval(interval);
reject(out.error_code);
} else if (out.completed) {
clearInterval(interval);
resolve(out.output);
} else if (!out.completed) {
// this should rerun
set_call_timeout();
return;
}
};
const interval = setInterval(get_info, 5.5 * 1000);
// ^ every 5.5 seconds
const set_call_timeout = () => setTimeout(get_info, 4 * 1000);
set_call_timeout();
});
},
async onSuccess(response) {
Expand Down

0 comments on commit 02f0167

Please sign in to comment.