Skip to content

Commit 30d015e

Browse files
matt-aitkenericallam
authored andcommitted
Update the trigger.config templates copy, and set the default to 1hr
1 parent 39365a8 commit 30d015e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/cli-v3/templates/trigger.config.mjs.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ export default defineConfig({
44
project: "${projectRef}",
55
runtime: "${runtime}",
66
logLevel: "log",
7-
// Set the maxDuration to 300 seconds for all tasks. See https://trigger.dev/docs/runs/max-duration
8-
// maxDuration: 300,
7+
// The max compute seconds a task is allowed to run. If the task run exceeds this duration, it will be stopped.
8+
// You can override this on an individual task.
9+
// See https://trigger.dev/docs/runs/max-duration
10+
maxDuration: 3600,
911
retries: {
1012
enabledInDev: true,
1113
default: {

packages/cli-v3/templates/trigger.config.ts.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ export default defineConfig({
44
project: "${projectRef}",
55
runtime: "${runtime}",
66
logLevel: "log",
7-
// Set the maxDuration to 300 seconds for all tasks. See https://trigger.dev/docs/runs/max-duration
8-
// maxDuration: 300,
7+
// The max compute seconds a task is allowed to run. If the task run exceeds this duration, it will be stopped.
8+
// You can override this on an individual task.
9+
// See https://trigger.dev/docs/runs/max-duration
10+
maxDuration: 3600,
911
retries: {
1012
enabledInDev: true,
1113
default: {

0 commit comments

Comments
 (0)