Skip to content

Commit 5a88f9d

Browse files
committed
comment runner code
1 parent d05fed0 commit 5a88f9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.circleci/retry-orca-build-verify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env node
2-
const timeout = 60; // in seconds
32
var spawn = require('child_process').spawn;
43

5-
function retry(cmd, args, trials) {
4+
// retry a given command if no standard output is produced within a given timeout
5+
function retry(cmd, args, timeout, trials) {
66
if(trials === 0) {process.exit(1)}
77
var timer
88
function retryAfterTimeout() {
@@ -38,4 +38,4 @@ function retry(cmd, args, trials) {
3838

3939
var args = process.argv
4040
args.splice(0,2);
41-
retry('.circleci/orca-build-verify.sh', args, 5)
41+
retry('.circleci/orca-build-verify.sh', args, 60, 5)

0 commit comments

Comments
 (0)