Skip to content

Commit 70fee36

Browse files
authored
Bump default action timeout from 2min to 15min (#168)
* Bump default action timeout from 2min to 15min This fixes #159. I think we could (should?) go even higher, since most of the actions I ran take their time, especially on macOS. * Increase timeout to 60min
1 parent f42f9b7 commit 70fee36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/src/actions_exec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func userCacheDir() (string, error) {
5353
return filepath.Join(userCacheDir, "sourcegraph-src"), nil
5454
}
5555

56-
const defaultTimeout = 2 * time.Minute
56+
const defaultTimeout = 60 * time.Minute
5757

5858
func init() {
5959
usage := `
@@ -140,7 +140,7 @@ Format of the action JSON files:
140140
clearCacheFlag = flagSet.Bool("clear-cache", false, "Remove possibly cached results for an action before executing it.")
141141

142142
keepLogsFlag = flagSet.Bool("keep-logs", false, "Do not remove execution log files when done.")
143-
timeoutFlag = flagSet.Duration("timeout", defaultTimeout, "The maximum duration a single action run can take (excluding the building of Docker images).")
143+
timeoutFlag = flagSet.Duration("timeout", defaultTimeout, "The maximum duration a single action run can take.")
144144

145145
createPatchSetFlag = flagSet.Bool("create-patchset", false, "Create a patch set from the produced set of patches. When the execution of the action fails in a single repository a prompt will ask to confirm or reject the patch set creation.")
146146
forceCreatePatchSetFlag = flagSet.Bool("force-create-patchset", false, "Force creation of patch set from the produced set of patches, without asking for confirmation even when the execution of the action failed for a subset of repositories.")

0 commit comments

Comments
 (0)