Skip to content

Commit 11fc7a2

Browse files
committed
Updated the error and link to the docs
1 parent 2588556 commit 11fc7a2

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/core/src/v3/errors.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ export class MaxDurationExceededError extends Error {
656656
public readonly maxDurationInSeconds: number,
657657
public readonly elapsedTimeInSeconds: number
658658
) {
659-
super(`Run exceeded maximum compute time (maxDuration) of ${maxDurationInSeconds} seconds`);
659+
super(
660+
`Run exceeded maximum compute time (maxComputeSeconds) of ${maxDurationInSeconds} seconds`
661+
);
660662

661663
this.name = "MaxDurationExceededError";
662664
}
@@ -756,6 +758,12 @@ const prettyInternalErrors: Partial<
756758
href: links.docs.troubleshooting.uncaughtException,
757759
},
758760
},
761+
MAX_DURATION_EXCEEDED: {
762+
link: {
763+
name: "How to set maxComputeSeconds (maxDuration)",
764+
href: links.docs.maxDuration,
765+
},
766+
},
759767
};
760768

761769
const getPrettyTaskRunError = (code: TaskRunInternalError["code"]): TaskRunInternalError => {

packages/core/src/v3/links.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const links = {
2626
personalAccessToken:
2727
"https://trigger.dev/docs/github-actions#creating-a-personal-access-token",
2828
},
29+
maxDuration: "https://trigger.dev/docs/runs/max-duration",
2930
},
3031
site: {
3132
home: "https://trigger.dev",

0 commit comments

Comments
 (0)